Skip to content

Commit 443a7a8

Browse files
liangmiQwQfengmk2
andauthored
docs(install): add global installation explanation (#1915)
This PR adds a warning for the document's global installation part, making sure users can know why and how the current Vite+'s global installation works, it also avoids confusing `<underlying pm> install -g` and `vp install -g`. It also adds new `vp outdated -g` command. --------- Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent 3dae3a3 commit 443a7a8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/guide/install.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ Use the `-g` flag for installing, updating or removing globally installed packag
6767
- `vp uninstall -g <pkg>` removes a global package
6868
- `vp update -g [pkg]` updates one global package or all of them
6969
- `vp list -g [pkg]` lists global packages
70+
- `vp outdated -g [pkg]` prints outdated packages
71+
72+
::: warning
73+
These commands do **NOT** interact with the underlying package manager's global installation directory.
74+
75+
Instead, Vite+ manages its own global packages under `~/.vite-plus/packages`, allowing them to remain available across different Node.js versions.
76+
77+
As a result, commands such as `vp link` do not affect Vite+'s global packages and will not appear in `vp list -g`.
78+
:::
7079

7180
## Managing Dependencies
7281

@@ -109,6 +118,7 @@ Use these commands when you want package-manager-managed tools available outside
109118
- `vp uninstall -g typescript`
110119
- `vp update -g`
111120
- `vp list -g`
121+
- `vp outdated -g`
112122

113123
#### Add and Remove
114124

0 commit comments

Comments
 (0)