diff --git a/bin/npm.ps1 b/bin/npm.ps1 index 04a1fd478ef9d..dc2559adb0e56 100644 --- a/bin/npm.ps1 +++ b/bin/npm.ps1 @@ -24,9 +24,9 @@ if (Test-Path $NPM_PREFIX_NPM_CLI_JS) { # Support pipeline input if ($MyInvocation.ExpectingInput) { - $input | & $NODE_EXE $NPM_CLI_JS $args + $input | & $NODE_EXE $NPM_CLI_JS -- $args } else { - & $NODE_EXE $NPM_CLI_JS $args + & $NODE_EXE $NPM_CLI_JS -- $args } exit $LASTEXITCODE