Skip to content

Commit ea156d2

Browse files
authored
Merge pull request #12 from roman-bcny/npm-ps1
Workaround npm.ps1 interaction with &
2 parents ba68400 + 984ffb2 commit ea156d2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/windows/Install-DashcamCLI.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Set-StrictMode -Version Latest
99

1010
Write-Host "Installing Dashcam CLI $Version..."
1111

12-
& npm install --location=global dashcam@$Version
12+
cmd /c npm install --location=global dashcam@$Version
1313

1414
Write-Host "Verifying Dashcam CLI Install..."
1515
& dashcam --help

src/windows/Install-NodeJS.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ Write-Host "Installing Node.js $Version..."
4242
# For the moment, use 16 as that matches the major version of $Version, but
4343
# eventually make this include the value of $Version in some way
4444
$env:PATH = "$Directory;$env:PATH"
45-
& npm config set prefix $Directory
45+
cmd /c npm config set prefix $Directory
4646

4747
Write-Host "NPM configuration, local"
48-
& npm config list
48+
cmd /c npm config list
4949

5050
Write-Host "NPM configuration, global"
51-
& npm config list -g
51+
cmd /c npm config list -g

0 commit comments

Comments
 (0)