ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

vue3 创建过程中 运行npm create vue@latest 和 npm install卡住不动的解决方法之一

2026/9/13 21:25:21 拓冰建站 浏览量
vue3 创建过程中 运行npm create vue@latest 和 npm install卡住不动的解决方法之一

问题:npm create vue@latest、和npm install 不管是电脑cmd上还是vscode终端上都是卡很久或不动!

解决
1、查看npm代理

npm config get registry

2、更换npm镜像

npm config set registry=https://registry.npmmirror.com

这里换成淘宝源好像也不太行,不知道什么原因!
npm config set registry https://registry.npm.taobao.org

3、查看

npm config get registry

4、创建vue3 速度就可以了!

2023.12.10