generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

Failed to load external module babel-register

Open wangjiaji opened this issue 10 years ago • 6 comments

If you initiate a new app with gulp, after gulp serve, the first line is an error saying:

Failed to load external module babel-register

Then the app starts up fine, will it have any further effects? The options I made during the setup are:

  • Babel
  • Jade
  • Sass
  • ngRoute
  • Include Bootstrap
  • Include UI Bootstrap
  • Data Modeler: None
  • Gulp
  • Jasmine

I'm on Mac, El Capitan

wangjiaji avatar Feb 16 '16 08:02 wangjiaji

I am experiencing the same thing. Babel HTML Sass uiRouter BS UIB Mongo Gulp Mocha + Chai + Sinon

timothystewart6 avatar Feb 16 '16 14:02 timothystewart6

Do you guys have babel 6 installed globally? I think that's what causes it. I still haven't upgraded to Babel 6 because of issues I had with the first initial versions of it, but those are probably fixed by now.

Awk34 avatar Feb 16 '16 15:02 Awk34

I do not.

➜ project git:(develop) npm list -g --depth=0 /Users/user/.nvm/versions/node/v5.6.0/lib ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]

➜ project git:(develop) node --version v5.6.0 ➜ project git:(develop) npm -v 3.6.0

➜ project git:(develop) gulp build [18:37:14] Failed to load external module babel-register [18:37:14] Requiring external module babel-core/register [18:37:15] Using gulpfile ~/Documents/projects/project/gulpfile.babel.js

timothystewart6 avatar Feb 17 '16 00:02 timothystewart6

IIRC babel-register is the new way to run a Node.js require hook, and babel-core/register is the old way

Awk34 avatar Feb 17 '16 05:02 Awk34

Thanks. Should this just be ignored?

timothystewart6 avatar Feb 17 '16 17:02 timothystewart6

@timothystewart6 yeah, if it can't register with one method, but can with another, yeah it's fine.

Awk34 avatar Feb 18 '16 04:02 Awk34