npm install not creating a new package-lock.json

后端 未结 5 419
醉梦人生
醉梦人生 2021-02-01 12:49

I accidentally deleted my package-lock.json file. npm install is not generating a new one. How do I get npm to recreate this file.

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-01 13:14

    If your npm version is <5 you will have a shrinkwrap.json file created when running npm install.

    Otherwise package-lock will be created on npm versions 5 and above.

提交回复
热议问题