All in vain

Some rants about technology, PHP, people, tools, web etc from a developers perspective. Feel free to copy ideas, code or anything from here.

Thursday, October 09, 2014

running grunt cli shows nothing on ubuntu 14

No comments
If you are running ubuntu and you followed some tutorial which lists first step in the installation of nodeJS you might have run

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!