1
resposta

Não consigo finalizar a instalação

C:\Users\matheus\OneDrive\Área de Trabalho\qualquer>npx create-react-app legal template typescript

Creating a new React app in C:\Users\matheus\OneDrive\Área de Trabalho\qualquer\legal.

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

npm ERR! Cannot read property 'pickAlgorithm' of null

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\matheus\AppData\Local\npm-cache\_logs\2022-05-03T22_37_46_726Z-debug-0.log

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting legal/ from C:\Users\matheus\OneDrive\Área de Trabalho\qualquer
Done.

agora esta dando isso 
C:\Users\matheus\OneDrive\Área de Trabalho>cd nom

C:\Users\matheus\OneDrive\Área de Trabalho\nom>npx creat-react-app legal
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/creat-react-app - Not found
npm ERR! 404
npm ERR! 404  'creat-react-app@latest' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\matheus\AppData\Local\npm-cache\_logs\2022-05-03T23_25_48_783Z-debug-0.log

esta apresentado este erro por favor como soluciono

1 resposta

Tenta com o seguinte comando

npx create-react-app legal --template typescript --use-npm.