0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 04:38:06 +00:00
packages/lang/node-homebridge/patches/000-add_module_search_path.patch
Hirokazu MORIKAWA 31123a08f9 node-homebridge: update to 1.2.4
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-12-28 13:32:09 +09:00

11 lines
489 B
Diff

--- a/lib/pluginManager.js
+++ b/lib/pluginManager.js
@@ -324,6 +324,7 @@ class PluginManager {
else {
this.searchPaths.add("/usr/local/lib/node_modules");
this.searchPaths.add("/usr/lib/node_modules");
+ this.searchPaths.add("/usr/lib/node");
this.searchPaths.add(child_process_1.execSync("/bin/echo -n \"$(npm --no-update-notifier -g prefix)/lib/node_modules\"").toString("utf8"));
}
}