简体   繁体   中英

Error while creating react app using npm or npx

I am getting an error when I create react app following screenshot is an error:

Node.js version v12.18.1

npm version v6.14.5

I am creating a project using these commands:

  1. I added create-react-app globally using this npm install -g create-react-app
  2. I created a project using the following command create-react-app demo

在此处输入图像描述

  1. I checked for npm audit and got the following answer

在此处输入图像描述

I also used this following method to create a project

npx create-react-app demo

but I also got an error in this too. but this error is too long to add to this question. Please, give me some solution for this problem. until then I can't work forward.

In create-react-app documentation says:

If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app to ensure that npx always uses the latest version.

https://create-react-app.dev/docs/getting-started#quick-start

And just use: npx create-react-app demo

I have node v12.13.0 and npm 6.12.0. Try npx create-react-app demo console

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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