Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

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


The Problem

If you installed nodejs using the node version manager. i.e. nvm its possible that if you upgrade your version of node using nvm install you will end up with the following errors when running a git commit(which ran several grunt tasks like jshint etc)

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

The resolution is to update your softlink as follows

The Resolution

If you are running an ubuntu machine, this should help

sudo rm /usr/bin/node
sudo ln -s /usr/bin/nodejs /usr/bin/node


Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

  • Mircea MOCA

    It works!