diff options
author | John Crispin <blogic@openwrt.org> | 2015-08-02 08:26:39 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-10-19 12:20:11 +0200 |
commit | 1fd7b5d1e67a9217f695c252866784a901bc7372 (patch) | |
tree | ee9df06d2bb34ac0e5c415f82925f193ec1c3d07 /lang/node/patches/003-path.patch | |
parent | 23bee2145ff377b48d3e49613f93b3b8c7a82dda (diff) |
nodejs: add 0.12 version of node
add node-js 0.12 and a few gyp bindings
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'lang/node/patches/003-path.patch')
-rw-r--r-- | lang/node/patches/003-path.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/node/patches/003-path.patch b/lang/node/patches/003-path.patch new file mode 100644 index 000000000..723fe9da7 --- /dev/null +++ b/lang/node/patches/003-path.patch @@ -0,0 +1,12 @@ +--- a/lib/module.js ++++ b/lib/module.js +@@ -512,7 +512,8 @@ + var homeDir = process.env.HOME; + } + +- var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')]; ++ var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'), ++ path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')]; + + if (homeDir) { + paths.unshift(path.resolve(homeDir, '.node_libraries')); |