如果使用 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