Npm install cannot find module 'semver'

后端 未结 26 1476
南方客
南方客 2020-11-29 15:29

I can\'t use npm install using the command prompt in NodeJS. I\'m getting these errors when running npm install:

module.js:339
             


        
26条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 15:41

    I had the same issue but it was caused by a broken package-lock.json file.

    Deleting package-lock.json and running npm install again fixed it for me.

提交回复
热议问题