Categories
JavaScript Answers

How to fix ‘Error: Couldn’t find preset “es2015” relative to directory “/Users/username”‘ with JavaScript?

Spread the love

To fix ‘Error: Couldn’t find preset "es2015" relative to directory "/Users/username"’ with JavaScript, we install the Babel preset package.

To install it, we run

npm install babel-cli babel-preset-es2015

to install the Babel packages to clear the error.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *