【发布时间】:2021-07-09 16:28:55
【问题描述】:
很遗憾,我未能使用
创建 React 应用项目npx create-react-app signup_react
但我已经使用相同的命令制作了各种项目。我需要帮助来解决这个问题,错误如下所示,
Creating a new React app in /media/imdadul/PERSONAL/Professional Works/React_Projects/signup_react.
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://github.com/npm/cli/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/imdadul/.npm/_logs/2021-07-09T16_19_45_838Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting signup_react/ from /media/imdadul/PERSONAL/Professional Works/React_Projects
Done.
注意:请关注上述错误并帮助我了解这方面的知识,非常感谢。
npm 版本: 7.9.0
节点版本: v15.14.0
【问题讨论】:
-
你的
npm是什么版本的? -
npm 版本:7.9.0
-
还有
Node.js? -
节点版本:v15.14.0
-
运行
npm cache clean
标签: javascript reactjs create-react-app