解决安装vue-cli报错 出现-4058的问题(vue版本 2.9.6)
感谢大佬的技术支持https://www.oschina.net/question/3850633_2279584
解决步骤:
1.通过config命令
npm config set registry https://registry.npm.taobao.org
npm info underscore
2.命令行指定
npm --registry https://registry.npm.taobao.org info underscore
3.重新安装vue-cli,并删除刚刚创建的项目,使用vue-cli 重新创建项目
npm install -g vue-cli
注意:安装的vue-cli项目地址,如果出现错误应到此处进行删除:
C:\Users\Administrator\AppData\Roaming\npm\node_modules
4.查看vue版本,在终端输入:vue -V