I would like to create a new npm project with a few modules on a machine without internet access.

This machine has various older projects each with a node_modules folder with lots of modules in there.

Can I somehow tell npm to use all these modules to create the new project instead of going out to the internet?

When I just issue

$ npm install browser-sync gulp gulp-sass

npm obviously tries to download these modules from the internet instead of gathering them from the various node_modules directories on the machine where the modules already exist!

0

There are 0 best solutions below