问题记录
一、报错信息二、解决方法
一、报错信息
安装vue脚手架的时候,使用命令npm install -g @vue/cli安装报错:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/vue-loader failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
二、解决方法
取消ssl验证
npm config set strict-ssl false
重新使用npm安装
npm install -g @vue/cli
好文链接
评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。
发表评论