Vikash Dhiman
Vikash Dhiman

Reputation: 588

React Js Installation Errors in Windows 7

I am getting the problem in installing the reactjs on the localhost. Getting the error of module babel.

One more thing I am following the tutorial from https://www.tutorialspoint.com/reactjs/. I followed all the steps same to same as given in the installation chapter but still getting the errors.

enter image description here

Upvotes: 1

Views: 1948

Answers (2)

Adnan
Adnan

Reputation: 1707

If you have node and npm install just run these commands to install react.

     npm i -g create-react-app

I will install react cli for you and you are done.

Upvotes: 0

Dimitris Karagiannis
Dimitris Karagiannis

Reputation: 9356

Since it solved your issue I am posting this here as an answer as well.

Save the following packages as dependencies to your project.

npm install -D babel-core babel-loader babel-preset-react babel-preset-es2015

This is equal to doing npm install -D babel-core npm install -D babel-loader npm install -D babel-preset-react npm install -D babel-preset-es2015 Th -D arguments saves the packages as devDependencies in your package.json file.

Upvotes: 1

Related Questions