Closed rcsheets closed 8 years ago
npm is bundled with node, so when you install node you get npm too.
It's a separate package and the nodejs package does not depend on npm.
The reverse dependency relationship does exist, so the readme could be adjusted to only call for the installation of npm, allowing nodejs to be pulled in automatically.
It's a separate package in debian, but they're bundled on nodejs.org. The version in debian is very out of date and defines the node binary as nodejs
, so it's not great to use anyway.
The readme suggests using node 0.10.21 and a /usr/local/bin/node
symlink to fix the binary name issue. The version from debian is 0.10.29.
If the readme is totally wrong, then this PR is certainly no good, but only because the readme needs even more changes.
I started from the assumption that the readme was basically correct, but simply missing any mention of the required npm package. Should the readme be changed to advise installing a newer version of node from nodejs.org, avoiding the debian package entirely?
I'm merging this because even if they're bundled on nodejs.org, specifying npm may help someone and harms no one.
I was getting started looking at sudo-humans and noticed that npm doesn't get installed automatically with nodejs, but it's required to follow the instructions in the readme. So I figured I'd improve the readme a little.