First following link couldn't install npm on ubuntu, I installed nodejs successfully, but then when I install npm, it gives error :
The following packages have unmet dependencies: **npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed** E: Unable to correct problems, you have held broken packages. root@yatin-3000-N200:/home/yatin/Documents/installations# npm install The program 'npm' is currently not installed. You can install it by typing: apt-get install npm*
Also tell if there is some command from which dependencies also get installed automatically in Ubuntu without we caring for it.