| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8dadaa6 commit cc18907
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,7 @@ const { | |||
| 31 | 31 | ArrayPrototypePush, | |
| 32 | 32 | ArrayPrototypeSlice, | |
| 33 | 33 | ArrayPrototypeSplice, | |
| 34 | + ArrayPrototypeUnshift, | ||
| 34 | 35 | Boolean, | |
| 35 | 36 | Error, | |
| 36 | 37 | JSONParse, | |
@@ -1227,8 +1228,8 @@ Module._initPaths = function() { | |||
| 1227 | 1228 | let paths = [path.resolve(prefixDir, 'lib', 'node')]; | |
| 1228 | 1229 | ||
| 1229 | 1230 | if (homeDir) { | |
| 1230 | - paths.unshift(path.resolve(homeDir, '.node_libraries')); | ||
| 1231 | - paths.unshift(path.resolve(homeDir, '.node_modules')); | ||
| 1231 | + ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries')); | ||
| 1232 | + ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_modules')); | ||
| 1232 | 1233 | } | |
| 1233 | 1234 | ||
| 1234 | 1235 | if (nodePath) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments