npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

NPM cert errors, cannot use or update npm!!!

What I Wanted to Do

sudo npm install -g n

What Happened Instead

npm http GET

Reproduction Steps

This is on a brand new machine, with a fresh install of npm.

Platform Info

ubuntu 14.04 LTS

$ npm --versions

{ http_parser: '1.0',
  node: '0.10.25',
  v8: '',
  ares: '1.10.0',
  uv: '0.10.23',
  zlib: '1.2.8',
  modules: '11',
  openssl: '1.0.1f',
  npm: '1.3.10' }

$ node -p process.platform

The program 'node' can be found in the following packages:
 * node
 * nodejs-legacy
Try: sudo apt-get install <selected package>

npm 1.3.0 is not supported, nor is node 0.10.25. Current versions are 6.4.1 and 10.11.0, respectively.

If you want to install via apt, the Node.js page on installing via package manager may help.

1.3.0 is the current version that is default in the Ubuntu 14.04 repositories, which is still an LTS version of linux. A TON of people still use 14.04 because it was the last version of Ubuntu that didn’t include systemd.

The nodejs page for installing via package manager DOESN’T WORK on Ubuntu 14.04. I had to install directly from a source tar and it took me hours to figure out.

Suggestions for a fix:

Update the package manager repositories so that 1.3.0 is not the officially latest version of NPM for Ubuntu 14.04.

Update the documentation to show how to update to a newer version of NPM than the one provided by default via a package manager installation.

That’s a problem for the distro maintainers, not us. We’re not responsible or involved with those packages (and in some cases, not even allowed to be).