close

[Solved] Error: Cannot find module ‘@babel/core’ 

I am trying to use @babel/core But I am facing the following Error: Cannot find module ‘@babel/core’  in ReactJS. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How Error: Cannot find module ‘@babel/core’ Error Occurs ?

I am trying to use @babel/core But I am facing the following.

Error: Cannot find module '@babel/core'

So here I am writing all possible solutions that I have tried to resolve this error.

How To Solve Error: Cannot find module ‘@babel/core’ Error ?

  1. How To Solve Error: Cannot find module '@babel/core' Error?

    To Solve Error: Cannot find module '@babel/core' Error You need to Run this Command: npm install –save-dev @babel/core @babel/preset-env and npm install –save-dev @babel/preset-react Now, Your error must be solved.

  2. Error: Cannot find module '@babel/core'

    To Solve Error: Cannot find module '@babel/core' Error Install babel/core with this command, But First of All, Delete node_modules and package-lock.json file. Now Install npm using npm i and then Run this command: npm install @babel/core –save Now, your error must be solved.

Solution 1: Install babel/core

Install babel/core with this command, But First of All, Delete node_modules and package-lock.json file. Now Install npm using npm i and then Run this command.

npm install @babel/core --save

Now, your error must be solved.

Solution 2: Run this command

You need to Run this Command.

npm install --save-dev @babel/core @babel/preset-env

and

npm install --save-dev @babel/preset-react

Now, Your error must be solved.

Summary

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment