Learn how to solve the console error in Node.js

Those errors happen when you're trying to access inexistent dependencies, specifically from babel in your project.

Note: as this normally shouldn't happen if you're working with an already existing project, maybe did you forget to install dependencies using npm install ?

To solve this error, install the dependencies manually using:

npm install babel-preset-es2015

npm install babel-preset-react

npm install react

npm install react-dom

In case you're using windows, to prevent any errors, add the --no-bin-links parameter to the instructions:

npm install babel-preset-es2015 --no-bin-links

npm install babel-preset-react --no-bin-links

npm install react --no-bin-links

npm install react-dom --no-bin-links

If the error persists, try to update Node.js


Senior Software Engineer at Software Medico. Interested in programming since he was 14 years old, Carlos is a self-taught programmer and founder and author of most of the articles at Our Code World.

Sponsors