Is there a way to force npm to generate package-lock.json?

后端 未结 7 619
Happy的楠姐
Happy的楠姐 2021-01-30 05:59

I deleted it by accident and have made many changes to package.json since. An npm install or npm update do not generate package-lock

7条回答
  •  一向
    一向 (楼主)
    2021-01-30 06:40

    This is answered in the comments; package-lock.json is a feature in npm v5 and higher. npm shrinkwrap is how you create a lockfile in all versions of npm.

提交回复
热议问题