SmartAudio/package/lang/node/patches/003-path.patch

13 lines
410 B
Diff
Raw Normal View History

2018-07-13 01:31:50 +00:00
--- 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'));