vscode创建react项目中npm淘宝源突然tunneling socket could not be established,

使用命令npm i -D create-react-app出现

info No lockfile found.
info There appears to be trouble with your network connection. Retrying...
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npm.taobao.org/react: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND web-proxy".

解决

npm config set proxy null
npm config set https-proxy null
npm config set registry http://registry.npmjs.org/

然后就行了

参考(因为是英文没看懂是什么,就运行了上面的命令就可以了)
https://stackoverflow.com/questions/42371380/npm-err-error-connect-econnrefused

【npm】tunneling socket could not be established相关推荐

  1. 【转】 python socket向百度发送http长连接请求 并做搜索

    http://hi.baidu.com/leejun_2005/blog/item/30fe9bd23a396c28960a1640.html [转] python socket向百度发送http长连 ...

  2. npm安装失败及解决办法 error network tunneling socket could not be established

    最近在使用npm安装create-react-app时出现了如下报错,切换淘宝镜像也无法解决,仍然出现这种错误. 完整报错为: error network tunneling socket could ...

  3. npm ERR! Error: tunneling socket could not be established的解决问题

    npm ERR! Error: tunneling socket could not be established的解决问题 参考文章: (1)npm ERR! Error: tunneling so ...

  4. 【NPM】npm 删除卸载一个模块

    [NPM]如何优雅的删除卸载 npm 包 方法一 方法二 npm 清理缓存 参考 方法一 我们现在假设要卸载一个 npm 包:xx-abc. npm uninstall xx-abc 这会在 node ...

  5. 【npm】node-gpy 内嵌npm版本升级 (解决node-gpy 内嵌 npm版本过低识别不了2022 msvs_version版本问题)

    [npm]node-gpy 内嵌npm版本升级 (解决node-gpy 内嵌 npm版本过低识别不了2022 msvs_version版本问题) 问题 原因 解决 这次运行同学给我们的另一个vue项目 ...

  6. https://registry.npm.taobao.org/@smallwei%2favue: tunneling socket could not be established, cause=c

    前端运行项目时报错: error An unexpected error occurred: "https://registry.npm.taobao.org/@smallwei%2favu ...

  7. vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established

    vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established ...

  8. Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 11000

    创建一个新的React应用时发生错误 前些天在公司的电脑上重新搭建各种环境,突然出了这个问题. 使用命令:npx create-react-app demo 环境:node v16.3.0; npm ...

  9. 微信小程序编译 tunneling socket could not be established,cause=connect ······

    今天编译小程序报以下错误 tunneling socket could not be established,cause=connect ······ 百度一下,解决方案: 左上角,设置 --> ...

最新文章

  1. jenkins 插件执行shell命令时,提示“Command not found”处理方法
  2. 单分子测序技术取得重要突破
  3. AAAI 2020| 一文看尽腾讯优图10篇入选论文
  4. 技术人员如何摆脱移生万物时代的焦虑
  5. shell 删除了hdfs 文件_知识干货 | 大数据全解 HDFS分布式文件系统
  6. TCP的三次握手、四次挥手,含泪整理面经
  7. 实验室机器OracleXE客户端连接远程Oracle服务器
  8. python中scrapy的middleware是干嘛的_python爬虫常用之Scrapy 中间件
  9. 目标和—leetcode494
  10. key位置 win10生成的ssh_Git实现ssh免密登录
  11. 使用webgl(three.js)搭建一个3D智慧园区、3D建筑,3D消防模拟,web版3D,bim管理系统——第四课
  12. wmv怎么转换成视频mp4?
  13. 使用Python实现电子词典
  14. 微信Android热补丁实践演进之路-andFix / ClassLoader / Tinker
  15. 二、什么是asp网站
  16. 中英文切换_值得收藏|不重装软件实现ArcGIS中英文版本之间切换
  17. 企查查企业详情爬虫(自动模拟登录企业详情页法律风险爬取)
  18. Python机器学习个人总结
  19. Redis 设计与实现——读书笔记
  20. 短视频系统源代码,加载本地图片和加载网络图片

热门文章

  1. Opencv中的ROI介绍
  2. 剑指Offer_入门_JZZ_斐波那契数列
  3. DNS(域名解析系统)协议
  4. 收益率计算年利率以及每期租金
  5. 写给不想做OJ题的C++学习者
  6. SAP UI5 应用开发教程之四十九 - 如何在桌面电脑端调试运行在手机上的 SAP UI5 应用试读版
  7. 计算多个不同鞋码对应的脚长——C语言
  8. 操作系统实验报告_ucore_lab1
  9. 【推荐算法 学习与复现】-- 深度学习系列 -- NFM
  10. mymps蚂蚁分类信息模板二次开发调用标签