it is possible that this question is repeated, but it is possible that I had tried all solutions offered (or... that is what i think).
The case is that I am trying to install a phoenix framework (to tinker a little) and it is recommended install all dependencies that uses, and it uses npm for many of them, and when I make npm install, the process works fine until a line that throws this: npm http 404 https://registry.npmjs.org/phoenix_html and after all is a total disaster!!
SOLUTION IS UPDATE NPM AND NODE
The answer for this question is solved here. Jose Valim answers that he is using the npm v3.5.2 and node v5.3.0. The problem is that I tried a lot of things, for example I remove and purge node and npm, update and upgrade apt-get and after I install them again and my versions are nodejs v0.10.25 and npm v1.3.10. That is far from 5.3.0 and 3.5.2
MY LAST TRYING I tried to make npm install -g npm and qhat I got was this:
npm http GET https://registry.npmjs.org/npm
npm http 200 https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm/-/npm-3.9.2.tgz
npm http 200 https://registry.npmjs.org/npm/-/npm-3.9.2.tgz
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@3.9.2 /usr/local/lib/node_modules/npm
It seems as if I get the v3.9.2, but if I do npm -v I get 1.3.10.
Thank you very much.