TooTallNate/node-gyp — pull request #492 by rmg (2014-08-16 00:44:48+00:00)
Title: Include node_root_dir in include path

Currently the `--nodedir` option assumes the path given contains `src/` and `deps/`, but bundled with each release of node is the same files in a somewhat flattened directory structure at `$PREFIX/include/node/`.

This is a quick hack to allow `--nodedir=$PREFIX/include/node` work, which lets node-gyp build against the headers bundled with the version of node being run, even if it isn't an official release.

It would work best if either node releases or the bundled version of npm pre-configured nodedir to point at the bundled headers.