2
respostas

Erro ao executar npx create-react-app

Executei npx create-react-app aluroni --template typescript --use-npm

E me retornou o erro:

npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

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

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

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

Tentei usar o npx clear-npx-cache e depois utilizar o npx create-react-app@latest aluroni --template typescript --use-npm mas retornou o mesmo erro

2 respostas

Olá, Carlos! Tudo jóia?

Tente:

npm uninstall -g create-react-app

e depois

npx create-react-app aluroni --template typescript --use-npm

E veja se isso resolve o problema.

Qualquer coisa só comentar aqui que tentamos de ajudar, Ok?

Abraços!

Oi Neilton,

eu já tentei estes comandos pra desinstalar o create-react-app, tentei limpar o cache do npx depois, mas nada deu resultado.