Skip to content

Instantly share code, notes, and snippets.

@abdallahokasha
Last active January 4, 2019 09:51
Show Gist options
  • Save abdallahokasha/5e506c87e03453977f4f9d42929e183d to your computer and use it in GitHub Desktop.
Save abdallahokasha/5e506c87e03453977f4f9d42929e183d to your computer and use it in GitHub Desktop.

Create React App on Ubuntu 16.04

Install nodejs

sudo apt install nodejs

Install latest version of node

firstly, install npm sudo apt install npm

in addition you can use npm install -g npm to update npm version

and then, use n-npm to update nodejs packages

sudo npm install -g n

sudo n stable

You can check node-installation-guide to install specific version

Also this answer is useful

Install latest version of npm

sudo apt-get install npm

npm install npm@latest -g

Install create-react-app

npm i create-react-app or sudo npm i create-react-app for higher permission.

Create app with name "todos" in the current directory

npx create-react-app todos

Start the server and run the app

cd myapp npm start

Find more on Create React App also you can check React-Docs

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