If you are running ubuntu and you followed some tutorial which lists first step in the installation of nodeJS you might have run
and when you tried to do your basic hello world this would have failed with the console reporting missing NodejS binary. The reason being on ubuntu NodeJS is called nodejs and there is another legacy program called node. You must run the following commands to ensure GruntJS works fine:
sudo apt-get --purge remove node
ln -s /usr/bin/nodejs /usr/bin/node
grunt -v
Now you should be able to run Grunt without any issue!
sudo apt-get install node
and when you tried to do your basic hello world this would have failed with the console reporting missing NodejS binary. The reason being on ubuntu NodeJS is called nodejs and there is another legacy program called node. You must run the following commands to ensure GruntJS works fine:
sudo apt-get --purge remove node
ln -s /usr/bin/nodejs /usr/bin/node
grunt -v
Now you should be able to run Grunt without any issue!