首页
Preview

报错error An unexpected error occurred: "https://registry.npmjs.org...

npm突然出现如下报错

yarn install v1.22.19
[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...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npmjs.org/ant-design-vue: ETIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/Users/chris/Projects/guiyun/te-h5/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

不管是npmyarn还是pnpm都无法使用,这个时候我们需要考虑是不是代理出现问题了

npm config rm proxy 
npm config rm https-proxy

我们可以将代理先全部删了,尝试下

版权声明:本文内容由TeHub注册用户自发贡献,版权归原作者所有,TeHub社区不拥有其著作权,亦不承担相应法律责任。 如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

点赞(0)
收藏(0)
炒鸡霸王龙
无喜无悲

评论(0)

添加评论