Possible to install all missing modules for a node application?

后端 未结 5 512
南旧
南旧 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:22

    Yes, as long as the dependency is listed in package.json.

    In the directory that contains package.json, just type:

    npm install
    

提交回复
热议问题