ATOM软件包安装以及更新失败

时间:2018-12-21 03:49:11

标签: npm atom-editor

我已经使用Atom一段时间了,从来没有遇到任何问题。但是最近当我去安装一个新的软件包(minimap)时,出现了这个错误。更新软件包时,我也会得到非常类似的错误。我相信问题与https://registry.npmjs.org/atom-utils有关,但我不知道在哪里关闭https。

npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/atom-utils failed, reason: connect ECONNREFUSED 0.0.0.0:443
npm ERR!     at ClientRequest.req.on.err (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR!     at emitOne (events.js:116:13)
npm ERR!     at ClientRequest.emit (events.js:211:7)
npm ERR!     at TLSSocket.socketErrorListener (_http_client.js:387:9)
npm ERR!     at emitOne (events.js:116:13)
npm ERR!     at TLSSocket.emit (events.js:211:7)
npm ERR!     at emitErrorNT (internal/streams/destroy.js:64:8)
npm ERR!     at _combinedTickCallback (internal/process/next_tick.js:138:11)
npm ERR!     at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR!  { FetchError: request to https://registry.npmjs.org/atom-utils failed, reason: connect ECONNREFUSED 0.0.0.0:443
npm ERR!     at ClientRequest.req.on.err (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR!     at emitOne (events.js:116:13)
npm ERR!     at ClientRequest.emit (events.js:211:7)
npm ERR!     at TLSSocket.socketErrorListener (_http_client.js:387:9)
npm ERR!     at emitOne (events.js:116:13)
npm ERR!     at TLSSocket.emit (events.js:211:7)
npm ERR!     at emitErrorNT (internal/streams/destroy.js:64:8)
npm ERR!     at _combinedTickCallback (internal/process/next_tick.js:138:11)
npm ERR!     at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR!   message: 'request to https://registry.npmjs.org/atom-utils failed, reason: connect ECONNREFUSED 0.0.0.0:443',
npm ERR!   type: 'system',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   stack: 'FetchError: request to https://registry.npmjs.org/atom-utils failed, reason: connect ECONNREFUSED 0.0.0.0:443\n    at ClientRequest.req.on.err (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)\n    at emitOne (events.js:116:13)\n    at ClientRequest.emit (events.js:211:7)\n    at TLSSocket.socketErrorListener (_http_client.js:387:9)\n    at emitOne (events.js:116:13)\n    at TLSSocket.emit (events.js:211:7)\n    at emitErrorNT (internal/streams/destroy.js:64:8)\n    at _combinedTickCallback (internal/process/next_tick.js:138:11)\n    at process._tickCallback (internal/process/next_tick.js:180:9)',
npm ERR!   parent: 'minimap' }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.atom/.apm/_logs/2018-12-21T03_25_51_526Z-debug.log

1 个答案:

答案 0 :(得分:0)

解决方案很简单:

  1. 禁用Pi-Hole。
  2. 更新Atom,安装新软件包
  3. 启用Pi-Hole
相关问题