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 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.

Related articles
Weekly trending
How to Sync Secure Messaging Apps Between Phone and Computer
24 Jun, 2026
  • Estimated reading time: 7 Minutes
How Users Can Manage Language Settings in Social and Messaging Apps
24 Jun, 2026
  • Estimated reading time: 7 Minutes
How Online Communities Use Group Chats and Channels More Effectively
24 Jun, 2026
  • Estimated reading time: 7 Minutes
Beginner Tips for Using Messaging Apps More Efficiently on Desktop
24 Jun, 2026
  • Estimated reading time: 7 Minutes
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.