繁体   English   中英

无法使用“npx create-react-app signup_react”创建反应应用程序

[英]Failed to create react app using “npx create-react-app signup_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

下面给出了这个问题的截图, 在此处输入图片说明

更新到最新的Node.js ,然后尝试npm install -g npm & npm cache clean

更多信息: npm ERR cb() 从未调用

@Alex,请关注这里,更新后更改了npm_version: 7.19.1的版本npm_version: 7.19.1我已经完成了你所说的但我可以运行npm cache clean run 这个命令,它显示下面给出了另一个错误,

npm ERR! As of npm@5, the npm cache self-heals from corruption issues
npm ERR! by treating integrity mismatches as cache misses.  As a result,
npm ERR! data extracted from the cache is guaranteed to be valid.  If you
npm ERR! want to make sure everything is consistent, use `npm cache verify`
npm ERR! instead.  Deleting the cache can only make npm go slower, and is
npm ERR! not likely to correct any problems you may be encountering!
npm ERR! 
npm ERR! On the other hand, if you're debugging an issue with the installer,
npm ERR! or race conditions that depend on the timing of writing to an empty
npm ERR! cache, you can use `npm install --cache /tmp/empty-cache` to use a
npm ERR! temporary cache instead of nuking the actual one.
npm ERR! 
npm ERR! If you're sure you want to delete the entire cache, rerun this command
npm ERR! with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-07-09T17_26_16_921Z-debug.log

现在它使用npx create-react-app signup_react命令显示另一个错误,如下所示,

Missing dependencies in package.json

请关注以上错误解释

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM