voidzero-dev / voidzero-dev/vite-plus
Warn when the user install the local cli globally
- Lingua principale
- Rust
- Stelle
- 5.8k
- Fork
- 262
- Merge medio
- 1g 34m
- PR unite (30g)
- 135
Descrizione
### 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by locating the Vite+ local CLI package's installation path for `npm -g install vite-plus`, then check how that package can detect a global install. Done means the global installation prints a clear warning explaining that the expected global CLI is different, while normal local installation remains unaffected.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- node.js
- Ambito
- cli, developer-experience
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 62/100