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 :)