question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'babel-core'

See original GitHub issue

I’ve just updated from 6.1.2 to 7.0.0 and I now get this error message:

[17:08:05] 'requirejs' errored after 68 ms
[17:08:05] Error: Cannot find module 'babel-core'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/.../Client/node_modules/gulp-babel/index.js:7:15)
    at Module._compile (module.js:570:32)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:31
  • Comments:29 (3 by maintainers)

github_iconTop GitHub Comments

613reactions
abbassiddiqicommented, Sep 26, 2018

Install babel-core as your dev dependency and it will work.

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

Update

As of babel 7, install the dependency via the following command instead

npm install --save-dev @babel/core @babel/preset-env
88reactions
krshubhamcommented, Mar 16, 2018

It wasn’t working for me too, until I read the README. It clearly says: npm install --save-dev gulp-babel @babel/core @babel/preset-env 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module '@babel/core' - node.js - Stack Overflow
Try running this. npm install @babel/core --save. babel changed their package so your babel-core will not be the same as @babel/core .
Read more >
Cannot find module '@babel/core' error [Solved] | bobbyhadz
To solve the error "Cannot find module '@babel/core'", make sure to install the @babe/core package by opening your terminal in your project's root...
Read more >
Error: Cannot find module 'babel-core/register' - MongoDB
Hi team, I am getting an 'Error: Cannot find module 'babel-core/register' after running npm install and npm start.
Read more >
Node.js – Cannot find module '@babel/core' - iTecNote
Node.js – Cannot find module '@babel/core'. babeljsnode.jsnpmreactjswebpack. I am following along with this webpack4/react tutorial:.
Read more >
cannot find module 'babel-plugin-macros' - You.com
It's either a peer dependency for another Babel plugin, or your build is using it directly (naming can be different in Babel config)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found