Skip to content

Commit a9ef96a

Browse files
committed
lookup pnpm folder
1 parent be80034 commit a9ef96a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/module-lookup.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ function getGlobalNpmPaths(filterPaths = true): string[] {
270270
paths.push(resolve(yarnBase, 'node_modules'), resolve(yarnBase, '../link/'));
271271
}
272272

273+
if (process.env.PNPM_HOME) {
274+
paths.push(resolve(process.env.PNPM_HOME, 'global/5/node_modules'));
275+
}
276+
273277
// Get npm global prefix and infer the module paths from there
274278
const globalInstall = execaOutput('npm', ['root', '-g']);
275279
if (globalInstall) {

0 commit comments

Comments
 (0)