【发布时间】:2021-05-12 16:34:25
【问题描述】:
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/cli/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/abhijith/.npm/_logs/2021-05-12T16_20_42_200Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
尝试安装 react { npx react-create-app app}
时出错我尝试 sudo npm cache,sudo npm cache --force clean 但仍然出现同样的错误
【问题讨论】:
-
确保您使用正确的节点版本来安装包
-
是的,如果我删除节点全局并重新安装它,我会使用稳定版本,但有时会出现同样的错误!