Error: Cannot detect package manager in the current path
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- devtools
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.
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/[email protected]/node_modules/agentkeepalive/lib/agent.js@
@
../node_modules/.pnpm/[email protected]/node_modules/agentkeepalive/index.js@
@
../node_modules/.pnpm/@[email protected]/node_modules/@pnpm/network.agent/dist/agent.js@
@
../node_modules/.pnpm/@[email protected]/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!)
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 92
- Avg merge
- 3h 49m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from antfu/node-modules-inspector
-
Support bun dedupeOpenenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
antfu/node-modules-inspector#214 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
antfu/node-modules-inspector#213 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
antfu/node-modules-inspector#174 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
antfu/node-modules-inspector#145 ·
-
Redundant codeOpen
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
antfu/node-modules-inspector#123 · 2 comments ·
All issues in antfu/node-modules-inspector
Similar issues
-
module-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
appandflow/stim#1604 · 1 comment ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100
lingdojo/kana-dojo#31060 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
paperclipai/paperclip#14173 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day