0
votes

$ create-react-app my-app

Creating a new React app in C:\Users\devar\Desktop\test-react\my-app.

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

[email protected] postinstall C:\Users\devar\Desktop\test-react\my-app\node_modules\babel-runtime\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"

[email protected] postinstall C:\Users\devar\Desktop\test-react\my-app\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"

[email protected] postinstall C:\Users\devar\Desktop\test-react\my-app\node_modules\core-js-pure node -e "try{require('./postinstall')}catch(e){}"

65 packages are looking for funding run npm fund for details

found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details

1
It isn't recommended to install CRA locally/globally, just npx create-react-app my-app so it grabs latest. Also ensure your environment meets requirements: Node >= 8.10 and npm >= 5.6. - Drew Reese

1 Answers

0
votes

Make sure you have Node.js installed:

https://nodejs.org/en/

Be sure to choose LTS version (12.8.3 at the time of writing).

Run node -v, it should display a version higher than 8.10

Run npm -v, it should display a version higher than 5.6

Install app using NPX

If you're wondering where did NPX come from:

NPX comes bundled with NPM version 5.2+

npx create-react-app my-app
cd my-app
npm start