Any module installed by npm will report an error, and the installation failure is Why?.

  node.js, question

devusers ❯❯❯ sudo npm install -g vue-cli
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!

npm ERR! </body>
npm ERR! </html>
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!…

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

You are prompted that there was an error accessing the source. Check it out:

  1. Is the network dns hijacked

  2. Is npm version too old

  3. Did the editor write an invalid source