在线求助。。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
相关推荐
爱勇宝3 小时前
大多数人不是在使用 AI 赚钱,而是在帮 AI 公司赚钱
前端·后端·程序员
冬奇Lab4 小时前
每日一个开源项目(第143篇):page-agent - 纯 JS 的网页 GUI Agent,无需截图、无需插件、无需后端
前端·人工智能·agent
IT_陈寒8 小时前
React的这个渲染问题连官方文档都没说清楚
前端·人工智能·后端
追逐时光者10 小时前
别再满网找零散工具了,腾讯 QQ 浏览器这个“帮小忙”工具箱真能省时间
前端·后端
Asmewill12 小时前
grep&curl命令学习笔记
前端
stringwu12 小时前
Flutter 开发必备:MVI 架构的高效实现指南
前端·flutter
用户21366100357213 小时前
Vue2组件化开发与父子通信
前端·vue.js
Momo__13 小时前
TypeScript satisfies 操作符——比 as 更安全的类型守门员
前端·typescript
用户21366100357213 小时前
Vue2事件系统与指令进阶
前端·vue.js
labixiong14 小时前
实现一个能跑的迷你版Promise(一)
前端·javascript·面试