简体   繁体   English

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

[英]I couldn't create react app by using the cmd “npx create-react-app”

I tried npx create-react-app my-app and here's the error: (ps: I tried npm init npm install create-react-app and then the cmd showed above. got the same err) HELP!我尝试了npx create-react-app my-app ,这是错误:(ps:我尝试npm init npm install create-react-app然后 ZDFFF0A7FA1A55C8C1A496 得到了相同的结果。

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code 1
npm ERR! path /Users/atomxv/Desktop/my-app/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! SOLINK_MODULE(target) Release/canvas-postbuild.node
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/Backend.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o
npm ERR!   CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o
npm ERR! ../src/backend/Backend.cc:111:10: warning: address of stack memory associated with local variable 'msg' returned [-Wreturn-stack-address]
npm ERR!   return msg.c_str();
npm ERR!          ^~~
npm ERR! 1 warning generated.

You'll need to have Node >= 10 on your local development machine.您需要在本地开发机器上安装 Node >= 10。 Also you dont have to do npm init npm install create-react-app你也不必做npm npm init npm install create-react-app

暂无
暂无

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

相关问题 无法使用 npx create-react-app 创建反应应用程序 - Can´t create react app using npx create-react-app 无法使用 npx install 命令创建-react-app - unable to create-react-app using npx install command 无法使用“npx create-react-app signup_react”创建反应应用程序 - Failed to create react app using “npx create-react-app signup_react” wan 我使用 npx create-react-app App_Name 创建新的反应应用程序显示此错误(发现 8 个漏洞) - wan i create new react App using npx create-react-app App_Name Its Show This Error (found 8 vulnerabilities) 我正在尝试使用“npx/npm create-react-app hello”命令创建一个反应应用程序并得到了整个消息 - I am trying to create a react app using the “npx/npm create-react-app hello” command and got this whole message 无法使用 npx create-react-app myproject 命令创建反应应用程序 - not able to create react app using npx create-react-app myproject command npx create-react-app my-app 错误:rollbackFailedOptional - npx create-react-app my-app ERORR: rollbackFailedOptional 使用 npx create-react-app 创建的应用无法启动, - App created with npx create-react-app failed to start, 使用 npx create-react-app 创建应用后<myproject> ,并使用“npm start”启动应用程序我得到了下面提到的这个错误</myproject> - After creating app using npx create-react-app <myproject> , and start app by using "npm start" i got this error mentioned below npx create-react-app 和 create-react-app 的区别 - Difference between npx create-react-app and create-react-app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM