There is a way to install npm package to a machine which doesn't have internet acccess is, using npm pack
in machine with internet acces, copying it to machine without internet and running npm install <tar>
in it. But npm pack
, packs whole project.
But I want to manage and install the modules myself, without the opportunity for the developers to add/remove any modules. So I just want node_modules to be packaged. And then want to install it to machine without internet.
For example when developer push his/her commits to origin, I want to get node_modules from ftp etc. and codes from GitLab then go on continuous integration with this static node_modules.
How can I do that?