Warn when the user install the local cli globally

Open Beginner friendly
#2,097 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
node.js

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.

Description

enhancement
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
  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
Dominant language
Rust
Stars
5.8k
Forks
263
Avg merge
1d 3h
Merged PRs (30d)
142

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voidzero-dev/vite-plus

All issues in voidzero-dev/vite-plus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.