Skip to content

Fix postinstall script failure on Windows (cross-platform compatibility) #181

@md-shoaib-alam

Description

@md-shoaib-alam

Describe the Bug

When running npm install on Windows, the installation fails during the postinstall lifecycle hook.

The current postinstall script relies on POSIX/bash-specific syntax ([ and || true), which is not recognized by the default Windows Command Prompt (cmd.exe).

Error Log

> openwa@0.1.6 postinstall
> [ -d dashboard ] && npm run dashboard:install || true

'[' is not recognized as an internal or external command,
operable program or batch file.
'true' is not recognized as an internal or external command,
operable program or batch file.
npm error code 1





Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions