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

你可能感兴趣的:(vue,npm,npm,vue.js,前端)