-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] run "npm publish" then "ERR! code ETIMEDOUT" #7082
Comments
me too. |
3 similar comments
me too. |
me too. |
me too. |
Yes, please set npm config set proxy |
兄弟是中国人吗, 这类设置我已经处理过了, 仍然没有效果 |
兄弟可以发布了,什么也没处理,我刚试了重新 publish 没问题。 |
我还是不行,难受 |
我这里不仅 I am not only |
确实如此,一开始我怀疑是自己的问题,现在想想应该不是,各种办法我都尝试了,切换过node14/16/18/20,npm6/8/10等版本,翻墙、连接手机热点(ipv6)、设置proxy,结果全都是超时 |
设置代理之后成功了。 |
咋弄的?我和楼上一样 各种方法都试了 还是不行 |
试试连手机热点,我反正用手机热点是可以了 |
可以了 多谢 手机热点我之前试过不行。 其他类似问题朋友 建议手机热点 多试几次 |
怎么设置代理? |
我试了,手机热点也不行 |
如果现象为可以通过浏览器打开 https://registry.npmjs.org ,但是执行命令
亲测有效。 |
你也用的Clash Verge? |
ClashXR |
也可以尝试在VPN工具的规则匹配内,手动新增npmjs.org规则。猜测可能是近期被墙,VPN规则配置未同步。 |
成功了, 这条操作是目前最有效的, 不知道为何工信部要去墙npm |
通过浏览器打开https://registry.npmjs.org/ ,获取IP地址,然后在本地hosts配置代理就可以了,亲测有效。 |
Closing: this looks to be an issue with the registry which is outside the scope of this repo. For registry support please go to npmjs.com/support. If you believe this is a bug with the cli, please provide further clarifying details. |
我是使用以下俩个操作,然后可以正常npm login 和publish了
|
Is there an existing issue for this?
Current Behavior
run "npm publish" or "npm login"
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/el-table-model failed, reason: connect ETIMEDOUT 104.16.29.34: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 settings.
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\asus\AppData\Roaming\npm-cache_logs\2023-12-14T01_27_18_524Z-debug.log
Environment
The text was updated successfully, but these errors were encountered: