[BUG] Script with directory iteration does not parse correctly as of 8.13.0 #5195
Closed
2 tasks done
Labels
Bug
thing that needs fixing
platform:windows
is Windows-specific
Priority 1
high priority issue
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
When running an npm script, in npm 8.14.0 (also 8.13.x) which iterates a directory, the iteration does not happen. The script does not seem to be parsed correctly.
The script with the iteration is:
for /D %D in (*) do (echo installing for %D & cd %D & npm install & cd ..);
This worked up to npm 8.12.2
Expected Behavior
The script is parsed as if it was run directly in cli and the iteration is executed correctly
Steps To Reproduce
Run '...'
npm run bundle
See error...
D was unexpected at this time.
Environment
The text was updated successfully, but these errors were encountered: