Opa pessoal, tudo bem?
Eu ja tinha instalado o sudo npm install create-react-app -g
globalmente antes de fazer o curso, como o Alberto falou para quem tem instalado globalmente basta digitar create-react-app <nome do projeto>
, feito isso apareceu um erro pra mim:
Print: imgur.com/a/t9MB8nH
Codigo:
~/Documents/React-Course create-react-app first-react-project
Creating a new React app in /Users/gustavo/Documents/React-Course/first-react-project.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/gustavo/.npm/_cacache/index-v5/44/67'tus
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gustavo/.npm/_logs/2019-11-07T18_55_14_960Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... package.json
Deleting first-react-project/ from /Users/gustavo/Documents/React-Course
Done.