node.js : request to https://registry.npmjs.org/vue failed, reason: connect ETIMEDOUT

 

https://v2.vuejs.org/v2/guide/installation.html
https://v3.router.vuejs.org/installation.html
https://v3.cli.vuejs.org/
https://v3.vuex.vuejs.org/installation.html

npm install vuex --save
npm install -g @vue/cli
npm install vue-router
npm install vue

npm install vue -g
npm install vue-router -g
npm install vue-cli -g


C:\Users\geovindu\.npmrc

npm i core-js@3.6.5 --save

request to https://registry.npmjs.org/vue failed, reason: connect ETIMEDOUT 104.16.19.35:443
解决办法是重新安装,从根部解决

1、执行:

npm config get proxy
npm config get https-proxy

如果返回值不为null,继续执行:

注意:要确保两个返回值都是null才可以,否则就要执行下面的代码

npm config set proxy null
npm config set https-proxy null

2、执行:

npm config set registry http://registry.cnpmjs.org/

3、重新安装

npm install -g cnpm --registry=https://registry.npm.taobao.org

指定淘宝镜像

npm config set registry http://registry.npm.taobao.org/


npm install -g cordova ionic
npm install d3 --save-dev

 

 

 

 

 

 

 

 

 

 

posted @   ®Geovin Du Dream Park™  阅读(4038)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
历史上的今天:
2016-12-08 初学Python
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示