title: How can I add npm (node.js package manager) to the PATH?
body: <p>I installed node.js like this:</p>
  
  <pre><code>cd /usr/local/bin/
  git clone --depth 1 http://github.com/joyent/node.git
  cd node
  git checkout origin/v0.4 # optional.  Note that master is unstable.
  export JOBS=2 # optional, sets number of parallel commands.
  mkdir ~/local
  ./configure --prefix=$HOME/local/node
  make
  make install
  echo 'export PATH=$HOME/local/node/bin:$PATH' &gt;&gt; ~/.profile
  source ~/.profile
  </code></pre>
  
  <p>Then I executed this <code>curl http://npmjs.org/install.sh | sh</code> to install npm. After I logged out and logged back in, npm command wasn't recognized:</p>
  
  <pre><code>[/usr/local/bin/node]# npm install now
  -bash: npm: command not found
  </code></pre>
  
  <p>What should I add to the PATH to have npm working?</p>