Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Error: Cannot detect package manager in the current path

Aperta
#45 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
devtools

Direzione di ricerca

Riproduci il malfunzionamento in Safari all’indirizzo https://node-modules.dev/#install=instantsearch.js usando la configurazione pnpm indicata. Inizia da __server.mjs e segui il percorso di Node Modules Inspector che segnala “Cannot detect package manager in the current path.”. Il lavoro è completato quando la riproduzione rileva il gestore di pacchetti e completa l’installazione richiesta senza questo errore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!)
Lingua principale
TypeScript
Stelle
3k
Fork
91
Merge medio
7h 11m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di antfu/node-modules-inspector

Tutte le issue di antfu/node-modules-inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.