引入liquidfill 报错
npm install echarts-liquidfill --save
npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npm.taobao.org/echarts-liquidfill failed, reason: connect ECONNREFUSED 10.168.1.49:8080
npm ERR! at ClientRequest.<anonymous> (D:\vue\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! at ClientRequest.emit (node:events:514:28)
npm ERR! at onerror (D:\vue\node_modules\npm\node_modules\agent-base\dist\src\index.js:117:21)
npm ERR! at callbackError (D:\vue\node_modules\npm\node_modules\agent-base\dist\src\index.js:136:17)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! FetchError: request to https://registry.npm.taobao.org/echarts-liquidfill failed, reason: connect ECONNREFUSED 10.168.1.49:8080
npm ERR! at ClientRequest.<anonymous> (D:\vue\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! at ClientRequest.emit (node:events:514:28)
npm ERR! at onerror (D:\vue\node_modules\npm\node_modules\agent-base\dist\src\index.js:117:21)
npm ERR! at callbackError (D:\vue\node_modules\npm\node_modules\agent-base\dist\src\index.js:136:17)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '10.168.1.49',
npm ERR! port: 8080,
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'
npm ERR! A complete log of this run can be found in: C:\Users\RD-16\AppData\Local\npm-cache\_logs\2023-09-20T05_40_47_871Z-debug-0.log
原因
代理配置问题,请求被拒绝
解决方法
删除代理配置
npm config delete https-proxy
然后重新安装
最后成功