任何软件包安装的npm错误

时间:2017-06-04 13:36:11

标签: node.js npm

当我尝试安装任何节点包时,例如npm install -g grunt显示类似的结果

这是命令的输出:grunt-cli安装

E:\apps>npm install -g grunt-cli
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/grunt failed, reason: connect ECONNREFUSED 127.0.0.1:80
npm ERR!     at ClientRequest.req.on.err (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR!     at emitOne (events.js:115:13)
npm ERR!     at ClientRequest.emit (events.js:210:7)
npm ERR!     at emitErr (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:88:11)
npm ERR!     at C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:99:9
npm ERR!     at Socket.onerror (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\https-proxy-agent.js:104:5)
npm ERR!     at emitOne (events.js:115:13)
npm ERR!     at Socket.emit (events.js:210:7)
npm ERR!     at emitErrorNT (internal/streams/destroy.js:62:8)
npm ERR!     at _combinedTickCallback (internal/process/next_tick.js:102:11)
npm ERR!     at process._tickCallback (internal/process/next_tick.js:161:9)
npm ERR!  { FetchError: request to https://registry.npmjs.org/grunt failed, reason: connect ECONNREFUSED 127.0.0.1:80
npm ERR!     at ClientRequest.req.on.err (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR!     at emitOne (events.js:115:13)
npm ERR!     at ClientRequest.emit (events.js:210:7)
npm ERR!     at emitErr (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:88:11)
npm ERR!     at C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:99:9
npm ERR!     at Socket.onerror (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\https-proxy-agent.js:104:5)
npm ERR!     at emitOne (events.js:115:13)
npm ERR!     at Socket.emit (events.js:210:7)
npm ERR!     at emitErrorNT (internal/streams/destroy.js:62:8)
npm ERR!     at _combinedTickCallback (internal/process/next_tick.js:102:11)
npm ERR!     at process._tickCallback (internal/process/next_tick.js:161:9)
npm ERR!   message: 'request to https://registry.npmjs.org/grunt failed, reason: connect ECONNREFUSED 127.0.0.1:80',
npm ERR!   type: 'system',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   code: 'ECONNREFUSED' }
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!     C:\Users\RSA\AppData\Roaming\npm-cache\_logs\2017-06-04T13_17_42_467Z-debug.log

    npm ERR! code ECONNREFUSED
    npm ERR! errno ECONNREFUSED
    npm ERR! FetchError: request to https://registry.npmjs.org/grunt failed, reason: connect ECONNREFUSED 127.0.0.1:80
    npm ERR!     at ClientRequest.req.on.err (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14)
    npm ERR!     at emitOne (events.js:115:13)
    npm ERR!     at ClientRequest.emit (events.js:210:7)
    npm ERR!     at emitErr (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:88:11)
    npm ERR!     at C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:99:9
    npm ERR!     at Socket.onerror (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\https-proxy-agent.js:104:5)
    npm ERR!     at emitOne (events.js:115:13)
    npm ERR!     at Socket.emit (events.js:210:7)
    npm ERR!     at emitErrorNT (internal/streams/destroy.js:62:8)
    npm ERR!     at _combinedTickCallback (internal/process/next_tick.js:102:11)
    npm ERR!     at process._tickCallback (internal/process/next_tick.js:161:9)
    npm ERR!  { FetchError: request to https://registry.npmjs.org/grunt failed, reason: connect ECONNREFUSED 127.0.0.1:80
    npm ERR!     at ClientRequest.req.on.err (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14)
    npm ERR!     at emitOne (events.js:115:13)
    npm ERR!     at ClientRequest.emit (events.js:210:7)
    npm ERR!     at emitErr (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:88:11)
    npm ERR!     at C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\agent.js:99:9
    npm ERR!     at Socket.onerror (C:\Users\RSA\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\https-proxy-agent.js:104:5)
    npm ERR!     at emitOne (events.js:115:13)
    npm ERR!     at Socket.emit (events.js:210:7)
    npm ERR!     at emitErrorNT (internal/streams/destroy.js:62:8)
    npm ERR!     at _combinedTickCallback (internal/process/next_tick.js:102:11)
    npm ERR!     at process._tickCallback (internal/process/next_tick.js:161:9)
    npm ERR!   message: 'request to https://registry.npmjs.org/grunt failed, reason: connect ECONNREFUSED 127.0.0.1:80',
    npm ERR!   type: 'system',
    npm ERR!   errno: 'ECONNREFUSED',
    npm ERR!   code: 'ECONNREFUSED' }
    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!     C:\Users\RSA\AppData\Roaming\npm-cache\_logs\2017-06-04T13_17_42_467Z-debug.log

0 个答案:

没有答案