Skip to content

Global install with npm -g doesn’t work well with multiple Node versions (mise, nvm, etc.) #365

@Goalonez

Description

@Goalonez

I’m using @playwright/cli together with AI CLI tools like Claude Code, Codex, and OpenCode (via CLI + skills to drive browser automation), but ran into an issue with the npm -g install: I use mise to manage multiple Node versions, and when switching projects the Node version changes, which makes the globally installed playwright-cli from the previous version unavailable; is there a better recommended way to install or use it in this kind of setup (e.g. Homebrew, though I saw this PR mentioning it’s not planned: #244)?

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