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.

Failed to load external module babel-register

See original GitHub issue

Fresh Node v4.4.3 and npm v3.x install.

> gulp -v
[14:55:49] Failed to load external module babel-register
[14:55:49] Requiring external module babel-core/register
[14:55:49] CLI version 3.9.1
[14:55:49] Local version 3.9.1

This only happens if the local folder has a gulpfile.babel.js. package.json has these installed:

"babel-core": "^6.7.7",
"babel-preset-es2015": "^6.6.0",
"babel-preset-stage-0": "^6.5.0",

.babelrc

{
  "presets": ["es2015", "stage-0"]
}

I even tried require('babel-core/register'); in gulpfile.babel.js but no luck.

Not sure how to fix this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
mrchiefcommented, May 2, 2016

Hmm. So I did npm i -S babel-register in order to get rid of the Failed... warning. Thanks for pointing in the right direction.

5reactions
phatedcommented, May 2, 2016

Not an issue, as it states on the next line down, it required babel-core/register. Babel now suggests you use a module called babel-register so we try that first with the fallback. Please read your entire log before creating an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load external module @babel/register while gulp
I have solved it by downgrading the gulp version from 3.9.1 to 3.9.0. Looks like 3.9.1 is buggy.
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 >
require external module babel-register" takes long time to ...
Coding example for the question "require external module babel-register" takes long time to execute-babel.js.
Read more >
@babel/register - npm
Start using @babel/register in your project by running `npm i ... There are 1892 other projects in the npm registry using @babel/register.
Read more >
babel/register - Babel.js
@babel/register uses Node's require() hook system to compile files on the fly when they are loaded. While this is quite helpful overall, it...
Read more >

github_iconTop Related Medium Post

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