[BUG] Newlines are handled differently between node and npm exec
on powershell
#7830
Open
2 tasks done
Labels
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Using the following script:
and
package.json
with"bin": "./index.js",
.When I run the script with multiline arguments in
node
andnpx
, I get the different results on Powershell:PowerShell 7.4.5/Windows 11
Note there is a missing second line on the
npx
outputbash/linux
Expected Behavior
Since I'm writing a CLI tool that relies heavily on multiline arguments, I expected the same behaviour between shells:
PowerShell 7.4.5/Windows 11
bash
A similar bug was fixed under bash at some time, however, it persists in windows environments.
Steps To Reproduce
Environment
//registry.npmjs.org/:_authToken = (protected)
The text was updated successfully, but these errors were encountered: