antfu / antfu/node-modules-inspector

Error: Cannot detect package manager in the current path

Open
#45 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
90
Avg merge
2d 3h
Merged PRs (30d)
9

Description

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!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure at https://node-modules.dev/#install=instantsearch.js in Safari, using the reported pnpm setup. Start at __server.mjs and trace the Node Modules Inspector path that reports “Cannot detect package manager in the current path.” Done means the reproduction detects the package manager and completes the requested installation without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.