Skip to content

Setting the TEXTDOMAIN local variable during the setup:tools step fails on Windows #3188

@jonathanbossenger

Description

@jonathanbossenger

When setting up the local development environment on Windows, the following npm script fails.

"setup:tools": "TEXTDOMAIN=wporg-learn composer exec update-configs"

The reported error:

TEXTDOMAIN=wporg-learn composer exec update-configs
'TEXTDOMAIN' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

In Windows, unlike *nix systems, it seems one needs to use the set command to set a local environment variable

Metadata

Metadata

Labels

[Component] EnvironmentWebsite development issues related to Learn's local environment, or needs Meta team involvement.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions