npm install not creating a new package-lock.json

后端 未结 5 423
醉梦人生
醉梦人生 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:09

    There might be a file called .npmrc which can contain

    package-lock=false
    

    which will cause the package lock file to not be generated.

提交回复
热议问题