• Resolved Mahrokh

    (@maahrokh)


    Hi,

    I am using w-env to develop a block
    But when I run “wp-env start” and it stops with an error:

    20 [17/17] RUN composer global require –dev yoast/phpunit-polyfills:”^1.0″

    20 ERROR: process “/bin/sh -c composer global require –dev yoast/phpunit-polyfills:\”^1.0\”” did not complete successfully: unable to find user Mahrokh: no matching entries in passwd file

    I am using windows 10 and installed Docker Desktop, Git and “npm -g install @wordpress/env”

    “Mahrokh” is the user name of my Windows

    Thank you for any help

    • This topic was modified 1 year, 10 months ago by Mahrokh.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @maahrokh

    Are you using the WSL2 backend for Docker on Windows? In the prerequisites section of wp-env‘s docs it’s said:

    There are instructions available for installing Docker on Windows (we recommend the WSL2 backend),

    If you don’t know what backend you’re using, you could uninstall Docker, and re-install again using the WSL2 backend.

    Thread Starter Mahrokh

    (@maahrokh)

    @psrpinto

    Thank you for your support,

    That was my fault, I should run the npm -g install @wordpress/env before the wp-env start

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with wp-env’ is closed to new replies.