Be the first user to complete this post

  • 0
Add to List

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

Also Read:

  1. Making max width work in internet explorer
  2. css: margin does not work
  3. Troubleshooting: Fatal error: watch ENOSPC on grunt watch
  4. Error: can not find module 'underscore'
  5. Resolved - Error: Could not load the bindings file. Tried
  6. Resolved - Error: listen eaccess using nodejs and pm2
  7. Failed to lookup view index.js in directory - krakenjs