Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp-cli does not pick up gulpfile.babel.js #27

Closed
ide opened this issue Jun 19, 2015 · 14 comments
Closed

gulp-cli does not pick up gulpfile.babel.js #27

ide opened this issue Jun 19, 2015 · 14 comments

Comments

@ide
Copy link

ide commented Jun 19, 2015

(Moved from gulpjs/gulp#1098)

The gulp program that comes with the gulp-cli package (0.2.0) doesn't find gulpfile.babel.js. Uninstalling gulp-cli and globally installing gulp fixed the problem so this isn't urgent, but it seems like gulp-cli should work.

@sonicbobcat85
Copy link

I second this.

@dcrockwell
Copy link

+1

@TomClarkson
Copy link

+2

@JZL
Copy link

JZL commented Jun 27, 2015

+3

It's also odd, it will work fine, I'll add a few node packages then it'll stop working. I'll remove and reinstall and it'll work fine. It's very odd to me

@dcrockwell
Copy link

I found the issue on my system:

  • I had a system version of node installed (via OSX brew), which had a globally installed gulp of an earlier version. It was linked to /usr/local/bin/gulp.
  • I use nvm to manage different versions of node and iojs, but although I had gulp installed globally and locally in my projects, the paths for /usr/local/bin were of higher priority than my local paths.

The solution for me was:

  1. nvm use system
  2. npm uninstall gulp -g
  3. nvm use node
  4. npm install gulp -g
  5. gulp

@ide
Copy link
Author

ide commented Jun 27, 2015

My setup doesn't have a system version of Node but good to eliminate that as a possible source of bugs.

$ nvm use system
System version of node not found.
$ which gulp
/Users/ide/.nvm/versions/io.js/v2.3.1/bin/gulp

@TomClarkson
Copy link

Thanks reinstalling gulp fixed it for me

@robabby
Copy link

robabby commented Jul 10, 2015

@dcrockwell thanks for the recommendation, that worked for me.

@phated phated closed this as completed Jul 12, 2015
@phated phated reopened this Jul 12, 2015
@phated
Copy link
Member

phated commented Jul 12, 2015

This should be fixed as of 0.3.0 (just published). Please note that the .es6 extension that was supported in 0.2.0 was removed. I will be rebasing these changes onto the 4.0 branch shortly.

@phated phated closed this as completed Jul 12, 2015
@ripper2hl
Copy link

Same problem, this is fixed or not ? D:
captura de pantalla de 2015-07-23 10 42 19

@phated
Copy link
Member

phated commented Jul 23, 2015

Please read your console output before posting. It states that you are using gulp 3.8.11 globally, which is completely the wrong version

@danjuz
Copy link

danjuz commented Aug 19, 2015

@dcrockwell solution worked fine for me to. Thank you!

@Theminijohn
Copy link

+1, reinstall Gulp worked for me!

@vyorkin
Copy link

vyorkin commented Nov 13, 2015

guys, just curious, why do you ever need gulp.babel.js? you already using babel, so just use the babel's require hook. this is easy:

  • require('babel/register') for babel 5.x
  • require('babel-core/register') for babel 6.x

@gulpjs gulpjs locked and limited conversation to collaborators Nov 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests