Node express installation without the Internet

I installed node.js and npm on a Redhat server in a closed environment. Now I understand that I can not use npm to install anything. I want to express jade and stylus. I tried looking for packages to download from npm, but no luck. Can I do this without an internet connection on the server?

Thanks,

e

+4
source share
1 answer

On another server with internet and npm access, run "npm install jade", etc.

Then copy the "node_modules" directory to the private server

Also note that if there are any compiled modules, the server architecture must be consistent (and any post-build scripts must be identified and executed manually)

+6
source

All Articles