File: fix-global-module-path.patch

package info (click to toggle)
node-global-modules 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 128 kB
  • sloc: javascript: 40; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: fix global module path
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2020-12-15

--- a/index.js
+++ b/index.js
@@ -15,7 +15,7 @@
   if (process.platform === 'win32' || process.env.OSTYPE === 'msys' || process.env.OSTYPE === 'cygwin') {
     return path.resolve(prefix, 'node_modules');
   }
-  return path.resolve(prefix, 'lib/node_modules');
+  return path.resolve(prefix, 'lib/nodejs');
 }
 
 /**