简体   繁体   中英

Error while creating new react project via npx create-react-app my-app

This error occurs when trying to create new React project:

C:\Users\Korisnik\Desktop\CookIT>npx create-react-app CookIT

You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.3).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
When trying to create a new project this error occurs:

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

npm ERR! code 1
npm ERR! path C:\Users\Korisnik\Desktop\CookIT
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-react-app CookIT

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Korisnik\AppData\Local\npm-cache\_logs\2021-03-12T08_38_13_525Z-debug.log
  1. Uninstall global create-react-app npm uninstall -g create-react-app
  2. Now run command npx create-react-app CookIT

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