【发布时间】:2022-01-05 05:44:17
【问题描述】:
遇到一些麻烦,然后尝试创建反应应用程序
PS D:\Projects\Test> npx create-react-app my-app
Creating a new React app in D:\Projects\Test\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
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\semen\AppData\Roaming\npm-cache\_logs\2022-01-05T05_29_35_153Z-debug.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
我重新安装了几次 nodejs。将 nodejs 降级到 14.18.1 版本。尝试使用纱线。但是这种解决方案在我的情况下不起作用。我使用 Windows 10。 感谢您的帮助!
【问题讨论】:
-
日志是怎么说的?
-
这是最后几串日志。在此错误之前,一切都会成功。 ```` 4423 计时 npm 在 186464 毫秒内完成 4424 错误 cb() 从未调用! 4425 错误 这是 npm 本身的错误。请在以下位置报告此错误:4426 错误 npm.community> ```
标签: javascript node.js reactjs npm