yarn install 的时候报了错误
error An unexpected error occurred: "https://registry.npmmirror.com/moment: tunneling socket could not be established, cause=socket hang up".
解决方法
查看镜像
npm config get registry //查看
yarn config get registry
// https://registry.npm.taobao.org/
切换淘宝镜像
npm config set registry https://registry.npm.taobao.org
yarn config set registry https://registry.npm.taobao.org
我换了原来的镜像
npm config set registry http://registry.npmjs.org
yarn config set registry https://registry.yarnpkg.com
yarn 不行就换npm,确保都换了,然后这个报错就可以解决了文章来源:https://www.toymoban.com/news/detail-758044.html
如果还不行的,检查你的代理地址是否正确,是否防火墙影响文章来源地址https://www.toymoban.com/news/detail-758044.html
到了这里,关于error An unexpected error occurred: “https://registry.npmmirror.com/moment: tunneling socket could n的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!