isaacs/npm — Issue #1640: failed to install npm - "no nodejs"
Author: iwfmp
Created: 2011-11-02 09:39:49+00:00
State: open

I installed node.js, using a script:

# Download & Unpack Node.js - v. 0.4.12
echo 'Download Node.js - v. 0.4.12'
mkdir /tmp/node-install
cd /tmp/node-install
wget http://nodejs.org/dist/node-v0.4.12.tar.gz
tar -zxf node-v0.4.12.tar.gz
echo 'Node.js download & unpack completed'

# Install Node.js
echo 'Install Node.js'
cd node-v0.4.12
./configure && make && make install
echo 'Node.js install completed'

===

when I try to install npm, it says:

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

Maybe node is installed, but not in the PATH?
Note that running as sudo can change envs."

from what I've seen, running "locate nodejs", it's located in the /usr/local/bin folder.
any suggestions?