How to install packages inside their folder - NodeJS

Jul 17, 2018 1 min read
How to install packages inside their folder - NodeJS

I' creating this guide due to the annoying fact of having all the packages installed all over node_modules folder. If you are like me, you'd like to have it organized. Each in it's folder. This is how:

npm install --legacy-bundling

Example, let's say we want to install express and ejs:

npm install --legacy-bundling --save express ejs

Share this page if it helped you too :)

Great! Next, complete checkout for full access to ArturoFM.
Welcome back! You've successfully signed in.
You've successfully subscribed to ArturoFM.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info has been updated.
Your billing was not updated.