isaacs/npm — Issue #1898: npm install fails on CentOS 6.0
Author: vkiryukhin
Created: 2011-12-18 08:52:22+00:00
State: open

Failed to install npm on CentOS 6.0
error message:

"npm cannot be installed without nodejs.
Install node first, and then try again.
. . ."

In fact, file name of nodeJS on the CentOS is "nodejs" , not "node"
I think that name difference is the reason for this error in the fragment:

# make sure that node exists
node=`which node 2>&1`