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

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


升级一下npm


提示你访问源出错了。检测一下:

  1. 是否网络dns被劫持

  2. 是否npm版本过旧

  3. 是否编辑写入了无效的源

【热门文章】
【热门文章】