Make global packages always available

Offen
#13 5 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
nodejs
Bereich
cli, tooling

Rechercherichtung

The issue describes npm global packages disappearing after vfox use switches Node.js versions, but names no files, tests, or entry points. Start by locating the vfox-nodejs handling for npm install -g and version switching; done would mean a globally installed command remains available and runs with the Node.js version where it was installed.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

question

A very nice feature would be to make global packages are always available, like with Volta.

Current behavior

  1. Run npm install -g rimraf with a NodeJS managed by vfox
  2. The rimraf command is available
  3. Run vfox use to a different NodeJS version
  4. The rimraf command isn't found anymore

Expected behavior

  1. Run npm install -g rimraf with a NodeJS managed by vfox
  2. The rimraf command is available
  3. Run vfox use to a different NodeJS version
  4. The `rimraf command is available and it is ran by the NodeJS version on which it was installed.

I guess it may need some major changes to vfox core but it could also benefit other platforms, like Bun, Deno and Python pip packages.

Vorherrschende Sprache
Go
Sterne
10
Forks
8
Ø Merge
1 Std. 57 Min.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus version-fox/vfox-nodejs

Alle Issues in version-fox/vfox-nodejs

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.