npm ERR! cb() never called! npm ERR! <https://npm.community>
Posted zq_Hero
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm ERR! cb() never called! npm ERR! <https://npm.community>相关的知识,希望对你有一定的参考价值。
D:\\ProgramFiles\\nodejs>npm install
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! D:\\ProgramFiles\\nodejs\\node_cache\\_logs\\2018-12-26T11_06_54_492Z-debug.log
npm命令报各种错误,最后发现是之间设置了一个代理,在我无数数据重新安装nodejs后,还是不起作用,这个代理是永久生效,我还对电脑win10进行了系统更新,也无济于事!
有这样的错误:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'E:\\\\nodejs\\\\node.exe',
1 verbose cli 'E:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'n',
1 verbose cli '--force'
1 verbose cli ]
2 info using npm@6.14.6
3 info using node@v12.18.3
4 warn using --force I sure hope you know what you are doing.
5 verbose npm-session 31d77159c1ab3ef5
6 silly install loadCurrentTree
7 silly install readGlobalPackageData
8 timing npm Completed in 657ms
9 error cb() never called!
10 error This is an error with npm itself. Please report this error at:
11 error <https://npm.community>
最终解决办法:
删除代理:
npm config rm proxy
npm config rm https-proxy
问题解决!!!!
以上是关于npm ERR! cb() never called! npm ERR! <https://npm.community>的主要内容,如果未能解决你的问题,请参考以下文章
在 Docker 中运行时,`npm install` 导致`cb() never called!`
使用npm 安装依赖报错出现的问题 cd()never called
在 npm install 上出现错误,因为 npm ERR cb() 从未调用过
Refusing to install package with name "webpack" under a package npm ERR! also called "
Refusing to install package with name "webpack" under a package npm ERR! also called "