每当我在终端中运行 npm install 时,我都会收到“cb() never call”

时间:2021-07-16 01:09:34

标签: 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!     C:\Users\JOVANNE DELA ROSA\AppData\Roaming\npm-cache\_logs\2021-07-16T20_58_48_839Z-debug.log

1 个答案:

答案 0 :(得分:1)

当我们从 package.json 文件安装节点包并且 package-lock.json 文件由于某些原因(例如 node.js 版本更新为最新)而损坏时,我们将在终端中看到这样的错误.

要修复此错误,请先删除 package-lock.json 文件并运行以下命令。

npm cache clean --force

现在,尝试使用 npm install 命令安装您的软件包。

相关问题