[BUG] npm exec
on Windows may fail depending on the shell codepage
#5238
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
In npm v8.13.0 and earlier versions,
npm exec
may fail if executed in the Windows shell that have non-standard code page. I've received a feedback from the user of my Node tool who tried to use vianpx
: marp-team/marp-cli#465Expected Behavior
npm exec
should pass correct arguments to the command regardless of the shell codebase.npm v8.12.2 and earlier versions had worked as that.
Steps To Reproduce
cmd.exe
.chcp 65001
, to change the active code page of the current shell into UTF-8.npm exec echo-cli ö
.Environment
The text was updated successfully, but these errors were encountered: