Npm install cannot find module 'semver'

后端 未结 26 1508
南方客
南方客 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:49

    Faced this issue when I ran npm install using a lower version of node. Then later when I upgraded to latest version of node and ran gulp, it has shown this error.

    To resolve, deleted node_modules and re-ran npm install. Then gulp ran fine.

提交回复
热议问题