Skip to content

Commit

Permalink
fix(core): fix install packages task on Windows (#4752)
Browse files Browse the repository at this point in the history
Changing to forward slashes was causing failures on Windows if execting from volume other than C:/.

Closes #4727
  • Loading branch information
bekos authored Feb 10, 2021
1 parent 1edafe8 commit 57c6bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/devkit/src/tasks/install-packages-task.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Tree } from '@nrwl/tao/src/shared/tree';
import { execSync } from 'child_process';
import { join } from 'path';
import {
detectPackageManager,
getPackageManagerCommand,
Expand Down Expand Up @@ -38,7 +39,7 @@ export function installPackagesTask(
const pm = packageManager || detectPackageManager(cwd);
const pmc = getPackageManagerCommand(pm);
execSync(pmc.install, {
cwd: joinPathFragments(host.root, cwd),
cwd: join(host.root, cwd),
stdio: [0, 1, 2],
});
}
Expand Down

0 comments on commit 57c6bac

Please sign in to comment.