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

后端 未结 7 749
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:24

    When working with local packages, the only way I found to reliably regenerate the package-lock.json file is to delete it, as well as in the linked modules and all corresponding node_modules folders and let it be regenerated with npm i

提交回复
热议问题