在package.json中安装依赖项时出现yarn错误

时间:2018-09-04 05:44:46

标签: node.js npm yarnpkg

我正在尝试建立一个从我的工作库中获取的项目,该项目使用yarn。从仓库中取出后,我尝试了yarn,但它始终给我错误:

Arguments: 
  C:\Program Files\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js

PATH: 
C:\Users\myCompany365 Limited\AppData\Roaming\npm;
C:\Users\myCompany365 Limited\AppData\Local\Yarn\bin;
C:\Program Files\nodejs;
C:\Program Files (x86)\Yarn\bin

Yarn version: 
  1.9.4

Node version: 
  10.9.0

Platform: 
  win32 x64

Trace: 
Error: https://registry.yarnpkg.com/events/-/events-1.1.1.tgz: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
at ClientRequest.onError (C:\Program Files (x86)\Yarn\lib\cli.js:150248:17)
at Object.onceWrapper (events.js:273:13)
at ClientRequest.emit (events.js:182:13)
at Socket.socketErrorListener (_http_client.js:391:9)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)

0 个答案:

没有答案