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 Prob­lem

If you installed nodejs using the node ver­sion man­ager. i.e. nvm its pos­si­ble that if you upgrade your ver­sion of node using nvm install you will end up with the fol­low­ing errors when run­ning a git commit(which ran sev­eral grunt tasks like jshint etc)

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

The res­o­lu­tion is to update your soft­link as follows

The Res­o­lu­tion

If you are run­ning 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!