npm error code ETIMEDOUT

1、执行npm install axios --save 报错

1
2
3
4
5
6
7
8
9
10
D:\code\react\custom-frontend>npm install axios --save
npm error code ETIMEDOUT
npm error errno ETIMEDOUT
npm error network request to https://registry.npmjs.org/axios failed, reason:
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'
npm error A complete log of this run can be found in: D:\sofeware\nodeJS\node_cache\_logs\2024-10-12T02_08_43_165Z-debug-0.log

  解决办法,切换到淘宝镜像

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

  

posted @   信铁寒胜  阅读(340)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 解答了困扰我五年的技术问题。时代确实变了!
· PPT革命!DeepSeek+Kimi=N小时工作5分钟完成?
· What?废柴, 还在本地部署DeepSeek吗?Are you kidding?
· DeepSeek企业级部署实战指南:从服务器选型到Dify私有化落地
· 程序员转型AI:行业分析
历史上的今天:
2022-10-12 oracle修改字段类型报错ORA-01439: column to be modified must be empty to change datatype
2022-10-12 ORA-01440: 要减小精度或标度, 则要修改的列必须为空问题修复
2022-10-12 oracle中字段类型对应Double型的类型可以用NUMBER类型字段
2021-10-12 maven打包后,如何获取resouce路径下的文件
2021-10-12 eclipse启动TC,出现闪退的问题
点击右上角即可分享
微信分享提示