简体   繁体   English

当我尝试创建 react 项目时出现错误

[英]When i try to create react project i get error

I'm trying create a react app but when i execute this command (My IDE's default command)我正在尝试创建一个 React 应用程序,但是当我执行此命令时(我的 IDE 的默认命令)

"C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npx-cli.js" --ignore-existing create-react-app . "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npx-cli.js" --ignore-existing create-react-app 。

I get this error我收到这个错误

npx: installed 91 in 20.183s

Creating a new React app in C:\Users\GreXLin85\WebstormProjects\blogandportfolio.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
error postcss@8.1.3: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.12.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts cra-template --cwd C:\Users\GreXLin85\WebstormProjects\blogandportfolio has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.

I tried update "node" and "npm" but not worked My node and npm versions我尝试更新“node”和“npm”但没有工作我的节点和 npm 版本

C:\Users\GreXLin85\WebstormProjects\blogandportfolio>node -v
v13.12.0

C:\Users\GreXLin85\WebstormProjects\blogandportfolio>npm -v
6.14.8

暂无
暂无

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

相关问题 Npm 尝试创建反应应用程序时出错 - Npm Error when I try to create the react app 当我尝试创建一个反应应用程序时,它会出错 - when I try to create a react app it gives an error 当我尝试在我的 React 项目中获取数据时,我收到此错误: Uncaught (in promise) SyntaxError: Unexpected token &lt; in JSON at position 0 - When i try to fetch data in my React project, then I get this error: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 当我尝试使用npm我安装我的项目包时出现错误 - I get an error when I try to install my project packages with npm i 当我尝试创建一个新的 angular 项目时出现以下错误 - I am getting following error when I try to create a new angular project opensslErrorStack 反应错误:当我尝试启动我的项目时,它向我显示此错误 - opensslErrorStack react error : when i try to start my project it show me this error 当我使用 npm 创建反应应用程序时,我收到此错误 - when I use npm to create react app ,I get this error 当我尝试连接到 mongodb 时出现此错误 - when i try to connect to mongodb get this error 当我尝试使用 nodejs 创建一个新文件时出现错误 - When i try to create a new file using nodejs i get an error 每当我尝试创建新的反应应用程序或尝试启动现有的反应应用程序时出现错误 - Getting error whenever I try to create new react app or try to start existing react app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM