Skip to content

Commit

Permalink
misc(init): fix global-modules require statement in package-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanonelson committed Mar 10, 2018
1 parent 2c2e968 commit 610aa02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils/package-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const path = require("path");
const fs = require("fs");
const spawn = require("cross-spawn");
const globalPath = require("global-modules");

const SPAWN_FUNCTIONS = {
npm: spawnNPM,
Expand Down Expand Up @@ -95,7 +94,7 @@ function getPathToGlobalPackages() {
}
}

return globalPath;
return require("global-modules");
}

module.exports = {
Expand Down

0 comments on commit 610aa02

Please sign in to comment.