Conflicts: ChangeLog src/node_version.h test/simple/test-util-inspect.js
We can do other OSs like 32 and 64-bit OS X, but we should encourage users to use the installer on OS X so we'll omit it here.
This "portable" mode rewrites the npm shebang to use the "node" executable in the same directory relative to the "npm" script. This makes the "npm" script "just work" even when "node" is not in the user's $PATH. This mode is necessary for the precompiled binary packages that may potentially be extracted to anywhere. The regular shebang-rewriting logic would normally set the npm script's shebang to "/bin/node" which will not be present on anyone's machine. In the end, we want the precompiled packages to be as user-friendly as possible.
Previously they were going into just "wafadmin" and node-waf wasn't working.
Prettier formatting for the shebang if the "prefix" ends with a /
Before they were just being copied into "lib/node/". Now they go into "lib/node/wafadmin/".
* honor the --without-waf and --without-npm configure switches * a small logic bug made the installer script install to $PWD instead of /usr/local if --prefix= was not passed to configure