It is necessary to update the project on computers with the prohibition of access to the network. All npm packages are already installed, only the executable code will be replaced. Question: Is it possible to do without running the npm install command? because at the same time, as I understand it, there will be an appeal to the Internet, to which there is no access. Is the dependency normal?

  • What do you mean by the replacement of the executable code will be made . What kind of executing code? - Stepan Kasyanenko
  • If there are no new packages and the versions were not updated (relative to the version that is installed), then everything will be ok. - Ilya Paymushkin

1 answer 1

If updates are not required, and all the packages necessary for the application to work are in place (all dependencies are satisfied), then everything will work as it should .

If you run npm install without accessing the Internet, nothing will happen, npm will give a connection error.

Of course, you need to take into account that the server environment also "matches" and meets the requirements of the application. Some of the packages can use any libraries or for example compiled versions for a specific architecture.

note: you can use your local server to distribute packages for example . You can use packages from local directories.