Skip to content

Commit

Permalink
fix(npm): use different cwd to not read repo configs
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Aug 23, 2023
1 parent 025ba94 commit 9fc0116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/tools/node/utils.ts
Expand Up @@ -55,7 +55,7 @@ export abstract class InstallNodeBaseService extends InstallToolBaseService {
tmp,
'--silent',
],
{ stdio: ['inherit', 'inherit', 1], env },
{ stdio: ['inherit', 'inherit', 1], env, cwd: this.pathSvc.installDir },
);

await fs.symlink(`${prefix}/node_modules/.bin`, `${prefix}/bin`);
Expand Down Expand Up @@ -168,7 +168,7 @@ export abstract class InstallNodeBaseService extends InstallToolBaseService {
tmp,
'--silent',
],
{ stdio: ['inherit', 'inherit', 1], env },
{ stdio: ['inherit', 'inherit', 1], env, cwd: this.pathSvc.installDir },
);
}
}
Expand Down

0 comments on commit 9fc0116

Please sign in to comment.