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 not found on windows #51

Closed
nyn3x opened this issue Mar 20, 2015 · 10 comments
Closed

gulp not found on windows #51

nyn3x opened this issue Mar 20, 2015 · 10 comments

Comments

@nyn3x
Copy link

nyn3x commented Mar 20, 2015

I just installed atom-build. I have a Project with a gulpfie.js.

When I Trigger a build gulp cannot be found, because just "gulp" is being searched for as an executable in the path. Windows seems to only look for gulp.exe oder gulp.com, but my path contains a gulp.cmd instead.

@noseglid
Copy link
Owner

How did you install gulp?

@nyn3x
Copy link
Author

nyn3x commented Mar 24, 2015

I just ran "npm install gulp -g" from my commandline.

@noseglid
Copy link
Owner

Hmm allright. It seems as atom-build should look for 'gulp.exe' as well to be compatible with windows. I don't have windows myself so it will be difficult to fix for me. I'm guessing it should look at os.platform to determine which binary to use.

@nyn3x
Copy link
Author

nyn3x commented Mar 24, 2015

Well, actually gulp.cmd would be better, because at least on my machine (and being a total newbie to node.js) I have a npm-folder with a gulp.cmd, which was created by the "npm install" command.

@noseglid
Copy link
Owner

I finally got a hold of a windows computer. When I do npm install gulp -g in cmd.exe it successfully installs gulp globally into C:\Users\<user>\AppData\Roaming\npm\. (this can be seen by running where gulp.

Can you verify that you did a global install from an Administrator command prompt?

@gpit2286
Copy link

gpit2286 commented Apr 5, 2015

This definitely sounds like a path problem.

http://stackoverflow.com/questions/24027551/gulp-command-not-found-error-after-installing-gulp
http://stackoverflow.com/a/9588052/1041104

See if either of those help you

@noseglid
Copy link
Owner

noseglid commented Apr 7, 2015

Closing this out. Please re-open the ticket if the problem persists.

@noseglid noseglid closed this as completed Apr 7, 2015
@nyn3x
Copy link
Author

nyn3x commented Apr 7, 2015

running where gulp shows me the same location:

C:\Users\eiben>where gulp
C:\Users\eiben\AppData\Roaming\npm\gulp
C:\Users\eiben\AppData\Roaming\npm\gulp.cmd

I can run gulp from the command-prompt (cmd) just fine, Only from within atom-build the gulp.cmd seems not te be found.

@noseglid
Copy link
Owner

noseglid commented Apr 7, 2015

Did you try the suggestions linked by @gpit2286 ?
It appears as those paths are not in your system path environment, hence Atom is unable to find where gulp is installed.

@nyn3x
Copy link
Author

nyn3x commented Apr 7, 2015

Well, as I said, I can execute gulp from the prompt just fine, it's just that atom-build doesn't seem to recognize gulp, as it's looking for a gulp.com or gulp.exe, but not a gulp.cmd. I believe that's something, windows itself is causing. I looked at the call-trace using the sysinternals process-monitor.

image

As you can see with the where-command a couple of comments above, the gulp.cmd is locate just there.

The links of @gpit2286 refere to problems, where gulp doesn't seem to be found by the command-prompt at all. When I type gulp at the prompt I get the following:

C:\Users\eiben>gulp
[15:16:10] No gulpfile found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants