npm安装任何模块都报错,安装失败是为什么?

devusers ❯❯❯ sudo npm install -g vue-cli
Password:
npm ERR! registry error parsing json
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "vue-cli"
npm ERR! node v5.4.1
npm ERR! npm v3.3.12

npm ERR! Unexpected token <
npm ERR! <html>
npm ERR! <head><title>403 Forbidden</title></head>
npm ERR! <body bgcolor="white">
npm ERR! <center><h1>403 Forbidden</h1></center>
npm ERR!


<center>JuanniuX/15.12.29</center>
npm ERR! </body>
npm ERR! </html>
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/is...

npm ERR! Please include the following file with any support request:
npm ERR! /Users/devusers/npm-debug.log



慕尼黑的夜晚无繁华
浏览 1074回答 1
1回答

桃花长相依

提示你访问源出错了。检测一下:是否网络dns被劫持是否npm版本过旧是否编辑写入了无效的源
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript