/usr/bin/env: node: No such file or directory
See original GitHub issueHi,
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:
- Created 9 years ago
- Comments:9 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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