Vikash Dhiman Vikash Dhiman - 11 months ago 95
React JSX Question

React Js Installation Errors in Window 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 I followed all the steps same to same as given in the installation chapter but still getting the errors.

enter image description here

Answer Source

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.