tumi
  • 211

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
阅读 99

推荐阅读