Cannot find module 'babel-core'
See original GitHub issueI’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:
- Created 6 years ago
- Reactions:31
- Comments:29 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Install
babel-core
as your dev dependency and it will work.Update
As of babel 7, install the dependency via the following command instead
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
👍