After the express project is launched, if a new node module is installed locally, a new module will be installed online?

such as the title, so do you have to execute the npm install command every time you launch?

Mar.02,2021

perform npm install, every time you deploy. You don't have to do it manually. Can pm2 implement its deploy function


local development? If the developer replaces the original project, it will have to be updated. It mainly depends on whether the new module is used in the source code. If you install a bunch of modules locally and are not referenced in the source code, then you do not need to install


if it is a module that your code must rely on, then in the online environment, you must execute npm install installed


. If the local project is to be updated online, your local project already depends on these new modules. When you update to the online, It is also dependent online, so install

Menu