Error: Cannot detect package manager in the current path · Issue #45 · antfu/node-modules-inspector · GitHub
Skip to content

Error: Cannot detect package manager in the current path #45

Open

Description

@Haroenv

Describe the bug

Trying with a couple different packages, I get this same error. This is when using Safari.

> Initiating WebContainer...
> WebContainer is booted.

> node --version
v18.20.3

> pnpm --version
8.15.6

> pnpm install instantsearch.js
[callSiteLocation@
depd@
../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/agent.js@
@
../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/index.js@
@
../node_modules/.pnpm/@pnpm+network.agent@0.1.0/node_modules/@pnpm/network.agent/dist/agent.js@
@
../node_modules/.pnpm/@pnpm+network.agent@0.1.0/node_modules/@pnpm/network.agent/dist/index.js@
@
../network/fetch/lib/fetchFromRegistry.js@
@
../network/fetch/lib/index.js@
@
../env/plugin-commands-env/lib/node.js@
@
../env/plugin-commands-env/lib/downloadNodeVersion.js@
@
../env/plugin-commands-env/lib/envRemove.js@
@
../env/plugin-commands-env/lib/env.js@
@
../env/plugin-commands-env/lib/index.js@
@
lib/main.js@
@
lib/errorHandler.js@
@
@
@https://eznlcauvb5v69uhbdhkuwnv2b2qtj6-zjf3.w-corp-staticblitz.com/blitz.7f809d15.js:40:26451]

Node.js v18.20.3

> node __server.mjs
[Node Modules Inspector] No config found
[Node Modules Inspector] Reading dependencies...
[Error: Cannot detect package manager in the current path]

Node.js v18.20.3

Reproduction

https://node-modules.dev/#install=instantsearch.js

System Info

Safari 18.2 (20620.1.16.11.8)

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Activity

  1. AddictArts commented on Apr 23, 2025

    @AddictArts

    I have this issue on Windows

    throw new Error("Cannot detect package manager in the current path");
          ^
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions