Skip to content

Commit

Permalink
fix: globalRoot needs -g
Browse files Browse the repository at this point in the history
  • Loading branch information
mateodelnorte committed Dec 11, 2018
1 parent 4f31b88 commit c35c45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/findPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = (cwd, searchDir = 'node_modules') => {

// Search relative to every directory in $NODE_PATH.
const root = cp.execSync('npm root').toString().trim();
const globalRoot = cp.execSync('npm root').toString().trim();
const globalRoot = cp.execSync('npm root -g').toString().trim();
const defaultRoots = `${root}:${globalRoot}`;

(process.env.NODE_PATH || defaultRoots).split(':').forEach(cwd =>
Expand Down

0 comments on commit c35c45e

Please sign in to comment.