所以...今天我在办公室的电脑上安装了 VS Code 和 Node.js。我最初的想法是编写一个快速应用程序来编辑一些 Excel 表格。当我尝试安装模块时,返回以下错误:
npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to http://registry.npmjs.org/express failed, reason: connect ECONNREFUSED 104.16.25.35:80
npm ERR! at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
npm ERR! at ClientRequest.emit (node:events:520:28)
PS C:\Users\fabio.cerqueira\ws-javascript\polo> npm install express
npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to http://registry.npmjs.org/express failed, reason: connect ECONNREFUSED 104.16.25.35:80
npm ERR! at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
npm ERR! at ClientRequest.emit (node:events:520:28)
npm ERR! at Socket.socketErrorListener (node:_http_client:442:9)
npm ERR! at Socket.emit (node:events:532:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! FetchError: request to http://registry.npmjs.org/express failed, reason: connect ECONNREFUSED 104.16.25.35:80
npm ERR! at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
npm ERR! at ClientRequest.emit (node:events:520:28)
npm ERR! at Socket.socketErrorListener (node:_http_client:442:9)
npm ERR! at Socket.emit (node:events:532:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '104.16.25.35',
npm ERR! port: 80,
npm ERR! type: 'system',
npm ERR! requiredBy: '.'
npm ERR! }
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'
有什么想法可以解决这个问题吗?