Gulp: /usr/bin/env: node: No such file or directory

Created on 27 Apr 2014  路  9Comments  路  Source: gulpjs/gulp

Hi,

Running Ubuntu 14.04 and nodejs 0.10.25~dfsg2-2ubuntu1

The node binary is called nodejs (and there is no node binary) which makes gulp fail https://github.com/gulpjs/gulp/blob/master/bin/gulp.js#L1

The following would fix it (unfortunately, there is no simpler hack AFAIK):

#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" -- "$0" "$@"

What do you think?

Most helpful comment

I also did face same issue. This is how I solved it.
sudo ln -s /usr/bin/nodejs /usr/bin/node

just in case someone came here looking for solution to this problem.

All 9 comments

I guess this is a lost cause.

https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint-elementary-os

Closing this :-(

I also did face same issue. This is how I solved it.
sudo ln -s /usr/bin/nodejs /usr/bin/node

just in case someone came here looking for solution to this problem.

@rohanpande Weird, that fixed my issue I was having both using npm and getting the newest version of Electron, thanks!

Sorry to bump, but thanks @rohanpande!

@rohanpande, that fixed my issue..Thank you

Also my thanks to @rohanpande!

Emoji reactions only from this point forwards, please - no need to send everyone notifications 馃槂

馃帀 馃帄 馃槃 馃懐

EDIT: Check out this issue for a fix: https://github.com/gulpjs/gulp/issues/2033

Was this page helpful?
0 / 5 - 0 ratings