安装vue-cli

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

如果使用 npm install -g vue-cli 安装vue-cli出现此问题

npm ERR! request to https://registry.npmjs.org/vue-cli failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"

通过此命令更换npm的镜像地址

npm config set registry https://registry.npm.taobao.org

安装vue-cli

npm install -g vue-cli

 

转载于:https://my.oschina.net/u/2426590/blog/1940727

你可能感兴趣的:(javascript,python,运维)