question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

42reactions
rohanpandecommented, Apr 28, 2016

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.

0reactions
callumacraecommented, Oct 26, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

run npm command gives error "/usr/bin/env: node: No such file ...
I installed via sudo make install. npm still fails: /work/qpp$ sudo npm install -g grunt-cli /usr/bin/env: node: No ...
Read more >
Cannot install NodeJs: /usr/bin/env: node: No such file or ...
This problem does not occur with Ubuntu 20.04. sudo apt-file find /usr/bin/node lists nodejs: /usr/bin/node . That is, installing the nodejs package installs ......
Read more >
"/usr/bin/env: 'node': No such file or directory" even though it is ...
I'm trying to get nodejs working. However, it tells me that node is not in my bin even though I downloaded the binary...
Read more >
Error usr bin env node No such file or directory - Edureka
I installed node js and npm via apt-get install and all of the dependencies, then I installed browserify npm install browserify -g.
Read more >
env: node: No such file or directory when using nvm - YouTrack
Found a temporary workaround: just manually append $PATH with node from nvm in debug configuration environment variables. While that works, it is of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found