How do you reinstall an app's dependencies using npm?

后端 未结 10 2398
陌清茗
陌清茗 2020-12-07 07:22

Is there a simple way to reinstall all packages that my app depends on (i.e. they are in my apps node_modules folder)?

10条回答
  •  时光说笑
    2020-12-07 07:47

    The right way is to execute npm update. It's a really powerful command, it updates the missing packages and also checks if a newer version of package already installed can be used.

    Read Intro to NPM to understand what you can do with npm.

提交回复
热议问题