Preloader
Node.js
  • Estimated reading time: 1 Minute

Couldn't find preset "es2015" and "react" relative to directory

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

Share:
Carlos Delgado

Carlos Delgado

Senior Software Engineer at Corvix. 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.

Related articles
Weekly trending
Effective Shared Scheduling: Managing Permissions and Updates
27 Oct, 2026
  • Estimated reading time: 4 Minutes
Dedicated Mobile Proxy: When It's Worth It (2026)
27 Oct, 2026
  • Estimated reading time: 5 Minutes
Why Should You Choose Custom Software for Your Business?
27 Oct, 2026
  • Estimated reading time: 4 Minutes
TokenPulse Opens Singapore APAC Operating Hub
27 Oct, 2026
  • Estimated reading time: 5 Minutes
SaaS Marketing Strategies to Strengthen Your Pipeline in 2027
27 Oct, 2026
  • Estimated reading time: 8 Minutes
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.