Skip to content

Compatibility with Windows and WSL #435

Open
@t-hamano

Description

I want to contribute to this project and attempted to build the project. I am using Windows OS and could not build it because of the UNIX-derived commands used.

For example, the cp command is not recognized as follows (the equivalent command is copy on Windows) :

nx run wp-now:"build:bundle"

> nx run wp-now:"build:bundle"

'cp' is not recognized as an internal or external command,
operable program or batch file.
Warning: run-commands command "cp packages/wp-now/public/* dist/packages/wp-now" exited with non-zero status code

 ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target build:bundle for project wp-now (653ms)
 
    ×    1/1 failed
    √    0/1 succeeded [0 read from cache]

So, after a quick look at the commands property of project.json, it seems that the following commands are not available on Windows:

  • rm
  • zip
  • cp
  • cat

The three solutions I know of are as follows:

I know it is very difficult to build an OS-independent development environment for such an advanced project, but I would be happy to help in any way I can.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions