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

后端 未结 10 2400
陌清茗
陌清茗 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:54

    You can do this with one simple command:

    npm ci
    

    Documentation:

    npm ci
    Install a project with a clean slate

提交回复
热议问题