Skip to content
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

Install options/guide #16583

Open
2 of 4 tasks
garikAsplund opened this issue May 3, 2024 · 3 comments
Open
2 of 4 tasks

Install options/guide #16583

garikAsplund opened this issue May 3, 2024 · 3 comments
Labels
contribution welcome documentation Improvements or additions to documentation

Comments

@garikAsplund
Copy link

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure?

Explain in Detail

Is there any installation procedure or am I missing something? I know that you can create projects via npm and all the other package managers and that's all well and good. I've done that before and never had an issue.

But, I needed to do something outside of a project with it couldn't find any documentation on how to do that. Searching 'install' on the website just leads you to projects that use Netlify and how to install that. Seems strange. So I installed Vite via homebrew.

A simple rundown of the overall situation could be helpful. Or a 'If you need to, install on your machine with brew install vite'?

Your Suggestion for Changes

Any info about installing Vite itself would de nice.

Reproduction

No response

Steps to reproduce

No response

@garikAsplund garikAsplund added the documentation Improvements or additions to documentation label May 3, 2024
@bluwy
Copy link
Member

bluwy commented May 13, 2024

Vite is only distributed as an npm package. You need to use npm install vite if you want to use Vite, similar to the scaffolded project. I suppose we can add a small section regarding manual installation of Vite. Installing Vite from homebrew is not recommended.

@garikAsplund
Copy link
Author

Ok, that checks out. As I said, using it for projects I've never had an issue, I just needed to do run some command and couldn't find Vite globally. Why is it not recommended via brew?

@bluwy
Copy link
Member

bluwy commented May 14, 2024

Using homebrew, or synonymously with npm install -g vite, installs Vite globally. When working with npm packages, it's usually recommended to install things per-project (with a package.json) so Vite is versioned and you control when to upgrade it. Otherwise when Vite cuts a new major, it'll break things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants