Skip to content

npx fails on Windows when Flock is installed in a path containing spaces #163

Description

@elhoceyne

Platform

Windows

Flock version

1.0.0

OS version

Windows 11

What happened?

When Flock is installed under a Windows path containing spaces, such as:

C:\Users\MYLAPTOP\AppData\Roaming\Flock

npx resolves bin\npx.exe before Flock's working npx.cmd launcher. Running commands such as npx concurrently --version fails because the executable path is split at the space:

'C:\Users\MYLAPTOP' is not recognized as an internal or external command,
operable program or batch file.

Steps to reproduce

  1. Install Flock for a Windows user whose profile path contains spaces.

  2. Run where npx.

  3. Confirm that Flock's bin\npx.exe appears before node-global\current\npx.cmd.

  4. Run npx --version.

  5. In a project with a local executable such as concurrently, run:

    npx concurrently --version
  6. Observe the path-splitting error.

  7. Rename Flock\bin\npx.exe or invoke npx.cmd directly.

  8. Run the command again; it succeeds.

Logs


Activity

  1. added theissue type on Nov 12, 2026
  2. lukas-frey commented on Nov 12, 2026

    @lukas-frey
    Member

    Thanks for the bug report and PR, I assigned the issue to you and reopened the PR. :)

  3. github-actions commented on Nov 23, 2026

    @github-actions

    Issue claimed by @elhoceyne in PR #164.

  4. added
    claimed
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimedos: windows

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions