joyent/node — Issue #2885: npm uses wrong --prefix during install
Author: mikeseven
Created: 2012-03-07 00:58:13+00:00
State: open

Using latest code 0.7.5/0.7.6, on Mac OSX Lion 10.7.3, after configure --prefix $PREFIX && make && make install, node is installed correctly at $PREFIX but any npm install -g goes to where node code was compiled instead of $PREFIX.

If I do npm set prefix $PREFIX, then all works fine.

So I think there is an issue in configure that sets npm's prefix to cwd instead of $PREFIX.