-
Notifications
You must be signed in to change notification settings - Fork 167
docs: add manual package-manager install path for vp #1116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,27 @@ After installation, open a new shell and run: | |
| vp help | ||
| ``` | ||
|
|
||
| ### Install with npm or pnpm | ||
|
|
||
| If you prefer not to pipe a remote script into your shell, you can install the published `vite-plus` package globally with a package manager instead: | ||
|
|
||
| ```bash | ||
| npm install -g vite-plus | ||
| # or | ||
| pnpm add -g vite-plus | ||
| ``` | ||
|
|
||
| After installing, open a new shell and run `vp help`. | ||
|
|
||
| If your shell cannot find `vp`, make sure your package manager's global bin directory is on your `PATH`. For `pnpm`, you may need to run `pnpm setup` first. | ||
|
|
||
| This installation path is more manual than the install script: | ||
|
|
||
| - It does not modify your shell profile for you. | ||
| - It does not automatically create the `node`, `npm`, and `npx` shims in `VITE_PLUS_HOME/bin`. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Now that this section documents Useful? React with 👍 / 👎. |
||
| - If you want Vite+ to manage those shims after installing, run `vp env setup`. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Following this bullet after Useful? React with 👍 / 👎. |
||
| - If you want to keep your system Node.js first, run `vp env off`. | ||
|
|
||
| ::: info | ||
| Vite+ will manage your global Node.js runtime and package manager. If you'd like to opt out of this behavior, run `vp env off`. If you realize Vite+ is not for you, type `vp implode`, but please [share your feedback with us](https://discord.gg/cAnsqHh5PX). | ||
| ::: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
vpcli fromvite-plus's package we call itLocal CLI. It is not recommended to install thisLocal CLIglobally through a package manager, as its features differ from those of theGlobal CLI, such as the lack of node runtime manager(e.g.:vp envcommand is missing) and package manager functionalities.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that makes sense.
I misunderstood the published
vite-pluspackage as a supported global installation path for the fullvpCLI. I’ll avoid documenting it that way.Would you prefer this PR to be reshaped to clarify that:
vpCLIvite-pluspackage is the project-local CLI and should not be installed globally