Environment
- OS: Windows 11
- Node: v24.11.1
- pnpm: 10.x
Problem
Running pnpm -r build fails on Windows because the CLI package
build script uses chmod +x dist/bin.js, which is not a valid
command on Windows.
Error
'chmod' is not recognized as an internal or external command,
operable program or batch file.
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @html-video/cli@0.1.0 build
Suggested Fix
Replace chmod +x dist/bin.js with a cross-platform solution:
- Use
shx package: shx chmod +x dist/bin.js
- Or add a Windows-compatible script in package.json

Environment
Problem
Running
pnpm -r buildfails on Windows because the CLI packagebuild script uses
chmod +x dist/bin.js, which is not a validcommand on Windows.
Error
'chmod' is not recognized as an internal or external command,
operable program or batch file.
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @html-video/cli@0.1.0 build
Suggested Fix
Replace
chmod +x dist/bin.jswith a cross-platform solution:shxpackage:shx chmod +x dist/bin.js