Windows npm runs scripts through cmd.exe even from Git Bash. Use shx to wrap Unix commands (mkdir -p, cp, rm -rf, chmod).