Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created January 8, 2018 17:02
Embed
What would you like to do?
Creating a new project with npm <= 5.2

If you use npm 5.1 or earlier, you can't use npx. Instead, install create-react-app globally:

npm install -g create-react-app

Now you can run:

create-react-app my-app
@Jay200009
Copy link

Nice 🙂

@Jay200009
Copy link

Thanks

@Ali-MU-1990
Copy link

Hello dears,
I am facing a problem to install it, please check the following screenshot and guide me how to fix those issues.

image

@alexsio27444
Copy link

For those who have an error when using the command
'npm install -g create-react-app'
follow these steps
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n latest
with that they update npm
and if you have problems with the node version
n 10.16.0
n lts
after
$ n
node / 4.9.1
ο node / 8.11.3
node / 10.15.0
Use up / down arrow keys to select a version, return key to install, d to delete, q to quit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment