npm报错npm ERR! code E500处理

安装vue-cli是npm报错:

PS D:\phpStudy2018\PHPTutorial\WWW\ming\vue_bus> npm install -g @vue/cli
npm ERR! code E500
npm ERR! 500 Internal Server Error: debug@^4.1.0

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ym\AppData\Roaming\npm-cache_logs\2019-05-24T03_39_28_681Z-debug.log

解决办法:

1,配置npm包地址

npm config set registry https://registry.npmjs.org/

2,检查地址

curl https://registry.npmjs.org/

3,清楚npm缓存

npm cache clean --force

再重新npm安装

你可能感兴趣的:(npm报错npm ERR! code E500处理)