Npm install cannot find module 'semver'

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

    On Arch Linux what did the trick for me was:

    sudo pacman -Rs npm
    sudo pacman -S npm
    

提交回复
热议问题