在ubuntu 20.04中配置代理后的npm时出错

在ubuntu 20.04中配置代理后的npm时出错,npm,http-proxy,Npm,Http Proxy,我试图在公司代理后面安装任何npm包,但我收到了这个错误 npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://npm.community> npm ERR! A complete log of this run can be found in: npm ERR! /home/alej

我试图在公司代理后面安装任何npm包,但我收到了这个错误

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alejandro/.npm/_logs/2020-10-19T19_13_29_573Z-debug.log
这是日志

info it worked if it ends with ok
verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'json-server' ]
info using npm@6.14.8
info using node@v12.19.0
verbose npm-session 33d189af4b63aef3
silly install loadCurrentTree
silly install readGlobalPackageData
timing npm Completed in 127629ms
error cb() never called!
error This is an error with npm itself. Please report this error at:
error <https://npm.community>
info如果它以ok结尾,它就工作了
详细cli['/usr/bin/node','/usr/bin/npm','install','-g','json server']
信息使用npm@6.14.8
信息使用node@v12.19.0
详细npm会话33d189af4b63aef3
愚蠢的安装loadCurrentTree
愚蠢地安装readGlobalPackageData
定时npm在127629ms内完成
错误cb()从未调用!
错误这是npm本身的错误。请通过以下地址报告此错误:
错误
谢谢

info it worked if it ends with ok
verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'json-server' ]
info using npm@6.14.8
info using node@v12.19.0
verbose npm-session 33d189af4b63aef3
silly install loadCurrentTree
silly install readGlobalPackageData
timing npm Completed in 127629ms
error cb() never called!
error This is an error with npm itself. Please report this error at:
error <https://npm.community>