yarn install时报错

1: 项目是vue的一个项目,之前6月份用yarn锁死依赖包;今天重新安装项目,yarn install报错
2:报错信息如下:
$ yarn install
yarn install v1.3.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "http://registry.npm.taobao.org/axios/download/axios-0.15.3.tgz: connect ECONNREFUSED 127.0.0.1:1080".
info If you think this is a bug, please open a bug report with the information provided in "D:\svn\branches\1.5\trade-admin\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/c... for documentation about this command.

阅读 19.6k
3 个回答

是package.json中"chromedriver": "^2.27.2"这个插件的问题,删掉后项目启动成功了
解决办法:
1:关闭代理
npm config set proxy null
2:安装淘宝镜像

step1: npm config set registry https://registry.npm.taobao.org

step2: npm info underscore

3:yarn install 安装node-modules

很明显是开了翻墙的代理,1080端口

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题