voidzero-dev / voidzero-dev/vite-plus
Warn when the user install the local cli globally
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 262
- Avg merge
- 1d 34m
- Merged PRs (30d)
- 135
Description
### 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.
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- cli, developer-experience
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100