首页 前端知识 宝塔搭建vue环境 npm 下载依赖项显示proxy代理错误解决

宝塔搭建vue环境 npm 下载依赖项显示proxy代理错误解决

2025-03-10 12:03:39 前端知识 前端哥 266 644 我要收藏

本地宝塔安装了环境之后

使用命令安装vue

npm create vue@latest

npm 下载依赖项显示proxy代理错误

network ‘proxy‘ config is set properly. See: ‘npm help config‘

解决方法:

设置代理关闭:npm config set proxy false

npm config set strict-ssl false

清除缓存:npm cache clean

如果还是报错则使用强制清除缓存指令

npm cache clean --force

如果显示

npm WARN using --force Recommended protections disabled.

需要降低npm版本,是npm版本过高导致的问题,

降低版本的命令 6.14.10为版本号

npm install npm@6.14.10 -g

再次使用命令

npm create vue@latest

成功进入第一步安装。

转载请注明出处或者链接地址:https://www.qianduange.cn//article/23117.html
标签
评论
发布的文章

Spring Boot Spring AI快速体验

2025-03-10 12:03:13

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!