克隆仓库时遇npm报错cb() never called! 求解决方案
npm 报错:
cb() never called! This is an error with npm itself 解决求助 克隆某代码仓库时触发npm报错:cb() never called! This is an error with npm itself,后台配置的代理对其他仓库均能正常工作。debug.log关键内容如下:
73613 silly extract core-js@^3.3.4 extracted to /Users/Development/workspace/star/node_modules/.staging/core-js-762f7d24 (15298ms) 73614 silly extract rxjs@^6.6.2 extracted to /Users/Development/workspace/star/node_modules/.staging/rxjs-d84d800e (10989ms) 73615 silly extract rxjs@^6.6.2 extracted to /Users/Development/workspace/star/node_modules/.staging/rxjs-5e744e4e (10932ms) 73616 silly extract rxjs@^6.6.2 extracted to /Users/Development/workspace/star/node_modules/.staging/rxjs-bba6736e (10810ms) 73617 silly extract rxjs@6.6.3 extracted to /Users/Development/workspace/star/node_modules/.staging/rxjs-050d768d (10271ms) 73618 timing npm Completed in 206111ms 73619 error cb() never called! 73620 error This is an error with npm itself. Please report this error at: 73621 error <https://npm.community>
已尝试以下方案但未解决问题:
npm cache clean --force- 删除现有
node_modules、package-lock.json后执行npm i npm cache verifynpm clean-install
可行解决建议
- 升级npm至最新稳定版本:
npm install -g npm@latest,完成后重新执行安装 - 切换npm源为国内镜像:
npm config set registry https://registry.npmmirror.com,再运行npm i - 检查项目
package.json中的依赖冲突:debug.log显示存在多个rxjs版本,尝试统一rxjs版本后再执行安装 - 使用yarn替代npm安装:先安装yarn
npm install -g yarn,再执行yarn install - 检查磁盘空间:确保当前工作目录所在磁盘有足够空间完成依赖解压与安装
- 关闭本地额外代理工具:仅保留后台配置的代理,避免代理冲突后重试
内容的提问来源于stack exchange,提问作者Krish909
相关产品推荐
相关产品推荐

