[BUG] Windows-style environment variables in npm scripts are no longer expanded #2731
Labels
Bug
thing that needs fixing
platform:windows
is Windows-specific
Priority 1
high priority issue
Release 7.x
work is associated with a specific npm 7 release
Milestone
Current Behavior:
Our setup uses environment variables to pass parameters to npm scripts. With npm v7, Windows-style environment variables like
%foo%
are no longer expanded (on Windows).Expected Behavior:
Windows-style environment variables used by npm scripts should be expanded (on Windows) like they are with npm v6. Alternatively, Unix-style environment variables should be made to work on Windows.
Steps To Reproduce:
package.json
to"echo %HelloWorld%"
set "HelloWorld=Hello world!"
npm run test
%HelloWorld%
instead ofHello world!
.Environment:
The text was updated successfully, but these errors were encountered: