Skip to content

Fix npm error could not determine executable to run #26

@jcandan

Description

@jcandan

During ddev start, I get the following:

 > [web stage-0 13/29] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked   --mount=type=cache,target=/var/lib/apt,sharing=locked   --mount=type=cache,target=/dot-cache,sharing=locked   --mount=type=bind,source=./playwright,target=/playwright   sudo -u jcandan mkdir -p /var/www/html/test   && cp -a /playwright /var/www/html/test   && chown -R jcandan:jcandan /var/www/html/test/playwright   && chown -R jcandan:jcandan /dot-cache   && sudo -u jcandan ln -s /dot-cache /home/jcandan/.cache   && cd /var/www/html/test/playwright   && ([ -f yarn.lock ] && export JS_PKG_MANAGER=yarn || export JS_PKG_MANAGER=npx     && sudo -u jcandan $JS_PKG_MANAGER     && sudo -u jcandan $JS_PKG_MANAGER playwright install-deps     && sudo -u jcandan $JS_PKG_MANAGER playwright install     )   && rm -rf /var/www/html/test/playwright   && rm /home/jcandan/.cache   && sudo -u jcandan mkdir -p /home/jcandan/.cache   && sudo -u jcandan cp -a /dot-cache/* /home/jcandan/.cache/:
2.996 npm error could not determine executable to run
2.998 npm error A complete log of this run can be found in: /home/jcandan/.npm/_logs/2025-04-24T18_18_55_167Z-debug-0.log

This prevents the project DDEV containers from spinning up successfully.

Note: this is a recent phenomenon. I'd started using this add-on last week for the first time successfully, but am running into this error today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions