DEV Community

Is it possible to share npm packages between multiple projects

Ermal Shuli on March 23, 2019

I'm playing with react, trying to create many mini apps exploring different react feature. Creating a new react project and installing the same pac...
Collapse
 
dmfay profile image
Dian Fay

Look into lerna.

Collapse
 
ermal profile image
Ermal Shuli • Edited

I will thanks

Apparently though, when I ran npm run eject on the created react application it solved the problem

It be cool if lerna fixes this issue without ejecting. I'll try it

Collapse
 
vishwarajanand profile image
Vishwaraj Anand

I didn't try but probably you can put a symlink to another node project's node_modules/someModule in your own project?

Collapse
 
tobiassn profile image
Tobias SN

I think you should just have a single app that’s separated into different parts, one for each experiment.