npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed [duplicate]

Solution 1:

I was able to install npm by doing following:

sudo apt-get install nodejs-dev node-gyp libssl1.0-dev

and

sudo apt-get install npm