visionmedia/n — pull request #69 by darrenderidder (2012-05-17 01:58:07+00:00)
Title: preserve npm symlink

OS X 10.6.8, for the cp command, the -R flag replaces -r and preserves symlinks by default. Added this to the cp command which copies the node, node-waf, npm etc binaries so that npm is copied to /usr/local/bin as a symlink. Otherwise npm quits working as soon as you do an n switch, since it follows the npm symlink and copies the npm file directly to /usr/local/bin, where npm then fails to find ../lib/utils/log.js

On Ubuntu 10.04+, the -R and -r flags are synonymous.

Tested on Mac OS X 10.6.8 but not on Ubuntu (yet)...