Install ReactJS Windows

Posted Almost 6 years ago. Visible to the public. Draft.

Install NodeJS and NPM:

Go to https://nodejs.org/en/
Download latest version of NodeJS LTS with Administrator privileges.

Install Visual Studio Code:

Go to https://code.visualstudio.com/
Downloaded latest version.
Run VS Code.

It should recommend to install Git. Follow instructions to install Git for Windows.

After installation, should be able to get version of git.

Open terminal and type:

git --version

Followed by:

node --version

Followed by:

npm --version

Each should give versions installed on Windows.

Install React from terminal:

npm install -g create-react-app

If successful, you should be able to get version:

create-react-app --version

Create react project:

create-react-app <projectname>

Run project:

cd <projectname>
npm start

Expected output in terminal (and should auto open browser to port 3000):

Compiled successfully!

You can now view <project_name> in the browser.

  Local:            http://localhost:3000/
  On Your Network:  http://<your_ip_address>:3000/

Note that the development build is not optimized.
To create a production build, use yarn build.
hashharvest
Last edit
Almost 6 years ago
hashharvest
Posted by hashharvest to ReactJS (2018-04-30 21:40)