Possible to install all missing modules for a node application?

后端 未结 5 500
南旧
南旧 2021-01-30 21:13

I have a node app that I just started working with and each time I try to run it, it says there is a missing module. I\'ve just been using npm install ... for each

5条回答
  •  醉梦人生
    2021-01-30 21:27

    You can run npm install yourModule --save in order to install and automatically update package.json with this newly installed module.

    So when you run npm install a second time it will install every dependecy previously added and you won't need to reinstall every dependency one by one.

提交回复
热议问题