在idea执行npm install 会报错


npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to http://118.112.188.108:9071/@yh/ta404-ui/download/@yh/ta404-ui-1.1.10-bga1.tgz failed, reason: connect ECONNREFUSED 118.112.188.108:9071
npm ERR!     at ClientRequest.<anonymous> (D:\java\nodejs\node_global\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
npm ERR!     at ClientRequest.emit (events.js:400:28)
npm ERR!     at Socket.socketErrorListener (_http_client.js:475:9)
npm ERR!     at Socket.emit (events.js:412:35)
npm ERR!     at emitErrorNT (internal/streams/destroy.js:106:8)
npm ERR!     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
npm ERR!     at processTicksAndRejections (internal/process/task_queues.js:82:21)
npm ERR!  FetchError: request to http://118.112.188.108:9071/@yh/ta404-ui/download/@yh/ta404-ui-1.1.10-bga1.tgz failed, reason: connect ECONNREFUSED 118.112.188.108:9071
npm ERR!     at ClientRequest.<anonymous> (D:\java\nodejs\node_global\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
npm ERR!     at ClientRequest.emit (events.js:400:28)
npm ERR!     at Socket.socketErrorListener (_http_client.js:475:9)
npm ERR!     at Socket.emit (events.js:412:35)
npm ERR!     at emitErrorNT (internal/streams/destroy.js:106:8)
npm ERR!     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
npm ERR!     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '118.112.188.108',
npm ERR!   port: 9071,
npm ERR!   type: 'system'
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'

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\java\nodejs\node_cache\_logs\2021-09-22T06_56_55_220Z-debug.log

一模一样的问题,请问解决了吗

你是不是设置跨域代理了118.112.188.108:9071,如果设置下载镜像建议使用淘宝的
运行这个命令

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

然后你再运行npm install