LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File nodejs-libpath.patch of Package nodejs (Project devel:languages:nodejs)

Index: node-v0.10.4/lib/module.js
===================================================================
--- node-v0.10.4.orig/lib/module.js
+++ node-v0.10.4/lib/module.js
@@ -508,7 +508,7 @@ Module._initPaths = function() {
     var homeDir = process.env.HOME;
   }
 
-  var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
+  var paths = ["/usr/lib/node"];
 
   if (homeDir) {
     paths.unshift(path.resolve(homeDir, '.node_libraries'));