【问题标题】:error cb() never called! - error while doing npm install错误 cb() 从未调用过! - 执行 npm 安装时出错
【发布时间】:2022-04-06 03:52:39
【问题描述】:

我正在尝试在我的 Angular 项目中安装节点模块。但是在执行 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!     /home/aino/.npm/_logs/2020-02-18T06_45_41_169Z-debug.log

并且错误日志如下

10005 silly decomposeActions refresh-package-json shallow-clone@3.0.1
10006 silly decomposeActions fetch clone-deep@4.0.1
10007 silly decomposeActions extract clone-deep@4.0.1
10008 silly decomposeActions preinstall clone-deep@4.0.1
10009 silly decomposeActions build clone-deep@4.0.1
10010 silly decomposeActions install clone-deep@4.0.1
10011 silly decomposeActions postinstall clone-deep@4.0.1
10012 silly decomposeActions finalize clone-deep@4.0.1
10013 silly decomposeActions refresh-package-json clone-deep@4.0.1
10014 silly decomposeActions fetch sass-loader@7.2.0
10015 silly decomposeActions extract sass-loader@7.2.0
10016 silly decomposeActions preinstall sass-loader@7.2.0
10017 silly decomposeActions build sass-loader@7.2.0
10018 silly decomposeActions install sass-loader@7.2.0
10019 silly decomposeActions postinstall sass-loader@7.2.0
.....

【问题讨论】:

标签: angular npm installation node-modules


【解决方案1】:

就我而言(jenkins CI),工作区已损坏。清理工作区很有帮助。

【讨论】:

    【解决方案2】:

    对我来说,这是因为连接问题。

    所以请尝试检查您的连接。

    【讨论】:

    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2020-06-24
    • 2018-03-20
    • 2021-06-02
    • 2019-02-27
    • 1970-01-01
    • 2019-01-02
    • 2018-09-19
    • 2019-12-18
    • 2020-06-15
    相关资源
    最近更新 更多