1、安装node.js
2、npm -v 查看npm版本
3、输入 npm config get registry 检测 npm 默认下载地址
默认应该是 https://registry.npmjs.org/
输入npm config set registry https://registry.npmmirror.com 修改镜像
再使用 npm config get registry 检测
此时就是淘宝镜像下载了 https://registry.npm.taobao.org
4、全局安装 npm install -g @vue/cli,如果报错权限不足前面加sodu
5、如果出现报错,清除缓存 npm clean cache –force
npm error request to https://registry.npm.taobao.org/@vue%2fcli failed, reason: certificate has expired
npm error A complete log of this run can be found in: /Users/wjc/.npm/_logs/2024-08-07T09_02_04_050Z-debug-0.log
搭建vue开发环境
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- vue3 命令 create test(test为项目名) 安装axlos npm i axios --save ...