Skip to content

Instantly share code, notes, and snippets.

@davidalves1
Last active June 4, 2019 15:56
Show Gist options
  • Save davidalves1/f0721e30e45a1859068009a0190a1809 to your computer and use it in GitHub Desktop.
Save davidalves1/f0721e30e45a1859068009a0190a1809 to your computer and use it in GitHub Desktop.
Resolver problema "Failed to load external module babel-core/register"

Problema

Ao executar o gulp em um projeto, é exibido o erro:

$ gulp
[19:55:52] Failed to load external module babel-register
[19:55:52] Requiring external module babel-core/register
...

Motivo

Esse erro ocorre devido a um bug existente no CLI da versão 3.9.1 do gulp

Resolução

Desinstale a versão atual do gulp com o comando:

$ npm un -g gulp

Instale a versão 3.9.0:

$ npm i -g [email protected]

Fonte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment