簡體   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