I\'m trying to install nodeJs into my Ubuntu 14.04 in order to use GruntJs.
I\'ve read about Ubuntu different way of doing it (issues?), so this is what I\'ve done i
I've found this is often a misnaming error, if you install from a package manager you bin may be called nodejs so you just need to symlink it like so
ln -s /usr/bin/nodejs /usr/bin/node
Just rename the command or file name ln -s /usr/bin/nodejs /usr/bin/node by this command
sudo PATH="$PATH:/usr/local/bin" npm install -g <package-name>
I think you should upgrade lastest node version
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
The issue is not with the version of node. Instead, it is the way NodeJS is installed by default in Ubuntu. When running a Node application in Ubuntu you have to run nodejs somethign.js instead of node something.js
So the application name called in the terminal is nodejs and not node. This is why there is a need for a symlink to simply forward all the commands received as node to nodejs.
sudo ln -s /usr/bin/nodejs /usr/bin/node
if you are able to access node on ubuntu terminal using nodejs command,then this problem can be simply solved using -creating a symbolic link of nodejs and node using
ln -s /usr/bin/nodejs /usr/bin/node
and this may solve the problem