Skip to content

Instantly share code, notes, and snippets.

Created January 8, 2018 17:02
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
Copy link

Nice 🙂

Copy link


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.


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
$ 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