Skip to content

Commit 610aa02

Browse files
committed
misc(init): fix global-modules require statement in package-manager
1 parent 2c2e968 commit 610aa02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/utils/package-manager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const path = require("path");
44
const fs = require("fs");
55
const spawn = require("cross-spawn");
6-
const globalPath = require("global-modules");
76

87
const SPAWN_FUNCTIONS = {
98
npm: spawnNPM,
@@ -95,7 +94,7 @@ function getPathToGlobalPackages() {
9594
}
9695
}
9796

98-
return globalPath;
97+
return require("global-modules");
9998
}
10099

101100
module.exports = {

0 commit comments

Comments
 (0)