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

相关推荐

  1. npm install 卡住六种解决方法

    2023-12-11 08:34:07       39 阅读
  2. Vue技巧】vue3支持.sync语法糖解决方案

    2023-12-11 08:34:07       43 阅读
  3. vue3支持.sync语法糖解决方案

    2023-12-11 08:34:07       31 阅读
  4. vue3之RouterView插槽过渡

    2023-12-11 08:34:07       19 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-11 08:34:07       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-11 08:34:07       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-11 08:34:07       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-11 08:34:07       20 阅读

热门阅读

  1. 聊聊AsyncHttpClient的exception

    2023-12-11 08:34:07       31 阅读
  2. .__deepcopy__()函数-深拷贝

    2023-12-11 08:34:07       43 阅读
  3. Strange-Towers-of-Hanoi

    2023-12-11 08:34:07       34 阅读
  4. 20231210 随机矩阵和M矩阵

    2023-12-11 08:34:07       36 阅读
  5. HTTPS加密协议:保护你的隐私与安全的铠甲

    2023-12-11 08:34:07       35 阅读
  6. 【Spring】Spring 微服务中的数据分区和分片

    2023-12-11 08:34:07       32 阅读
  7. 深入理解 Flask 中的 Session 和 Cookies

    2023-12-11 08:34:07       38 阅读
  8. oracle 清理归档日志

    2023-12-11 08:34:07       40 阅读