关于yarn:yarn-安装包时出现错误

error An unexpected error occurred: "https://registry.npm.taobao.org/egg: tunnel ing socket could not be established, cause=getaddrinfo ENOTFOUND 9999

猜想起因: 本机有proxy工具
解决办法:

yarn config set proxy http://localhost:port
yarn config set https-proxy http://localhost:port

减速办法:

yarn config set registry https://registry.npm.taobao.org --global
// 查看配置
yarn config list

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理