Skip to content

Windows build fails due to chmod command not recognized #27

@Kieutran26

Description

@Kieutran26

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
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions