在线求助。。npm i 报错,连公司内部网,无法连外网

各位前端朋友 ,有没有遇到我这种npm i 报错的问题。

公司内网,无法连外网,使用公司内部的Nexus镜像源

我在公司内网执行npm i 报错,报network连接失败。

我都已经在npm设置了内部镜像源,它为啥还要去外网下载呢。而且内部镜像源有npm-8.3.1.tgz这个包。

(同样的代码,我拿到外网就能执行成功,并且能启动起来)

bash 复制代码
E:\work\testinstall\test>npm i
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmmirror.com/npm/download/npm-8.3.
1.tgz failed, reason: connect ETIMEDOUT 220.181.125.241:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\KF6798\AppData\Local\npm-cache\_logs\2023-08-21T14_05_01_5
66Z-debug-0.log
相关推荐
white-persist3 分钟前
轻松抓包微信小程序:Proxifier+Burp Suite教程
前端·网络·安全·网络安全·微信小程序·小程序·notepad++
敲敲了个代码1 小时前
多标签页强提醒不重复打扰:从“弹框轰炸”到“共享待处理队列”的实战
java·前端·javascript·面试·架构
不想上班只想要钱2 小时前
动态类名在 <swiper-slide 的复制项中没有起作用的解决方法
前端·vue.js
weixin_395448912 小时前
tidl_import_mul_rmfsd_psd_u8_3x480x544_bise_raw_dynamic.txt
java·服务器·前端
Jinuss3 小时前
源码分析之React中updateContainerImpl方法更新容器
前端·react.js·前端框架
Mr Xu_3 小时前
Vue + Element Plus 实现前端导出 Excel 功能详解
前端·javascript·vue.js
仰泳之鹅3 小时前
【杂谈】使用Edge浏览器下载文件显示“Microsoft Defender SmartScreen 已阻止此不安全文件”的解决方法
前端·edge
万邦科技Lafite4 小时前
小红书评论数据一键获取,item_reviewAPI接口讲解
大数据·前端·数据库·chrome·电商开放平台
meng半颗糖5 小时前
vue3+tpescript 点击按钮跳转新页面直接通过链接预览word
前端·vue.js·word
击败不可能5 小时前
vue做任务工具方法的实现
前端·javascript·vue.js