voidzero-dev / voidzero-dev/vite-plus

Warn when the user install the local cli globally

Offen Anfängerfreundlich
#2,097 10 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Rust
Sterne
5.8k
Forks
262
Ø Merge
23 Std. 41 Min.
Gemergte PRs (30 T.)
138

Beschreibung

### Description

For some persons who don't know Vite+ from the official website, they may easily run `npm -g install vite-plus` to install Vite+, but it is actually not the expected global CLI. Node management and other core features are missing.

### Suggested solution

Print a warning when Vite+ local cli package is installed globally.

### Alternative

N / A

### Additional context

N / A

https://discord.com/channels/1475973262193459293/1524301479794446488/1524365671620804659

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den Installationspfad des lokalen CLI-Pakets von Vite+ für `npm -g install vite-plus` zu ermitteln, und prüfe anschließend, wie dieses Paket eine globale Installation erkennen kann. Als erledigt gilt die Aufgabe, wenn die globale Installation eine klare Warnung ausgibt, die erklärt, dass sich die erwartete globale CLI unterscheidet, während die normale lokale Installation unbeeinträchtigt bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
node.js
Bereich
cli, developer-experience
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
62/100

Neue Issues direkt in Ihr Postfach

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