npm install -g vue-cli-service报code E404错误

npm install -g vue-cli-service报code E404错误。

【现象】

C:\work\vue-ucenter>npm install -g vue-cli-service

npm ERR! code E404

npm ERR! 404 Not Found - GET https://registry.npmjs.org/vue-cli-service - Not found

npm ERR! 404

npm ERR! 404  'vue-cli-service@latest' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.

 

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-11-06T02_43_28_257Z-debug.log

【解决方法】

使用npm install进行安装。即:

C:\work\vue-ucenter>npm install

 

你可能感兴趣的:(技术方案)