Comments (5)
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.
from vite.
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?
from vite.
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.
from vite.
Would a good place to mention npm install vite
and npm install -g vite
(as well as their yarn equivalents yarn add vite
and yarn global add vite
) be https://vitejs.dev/guide/ aka https://github.com/vitejs/vite/blob/main/docs/guide/index.md ? I can start a quick PR to at least get feedback/input.
from vite.
PR ready for review (again): #17404
from vite.
Related Issues (20)
- Support internal Sass/SCSS in HTML HOT 1
- module missing in production build
- Using Vite's programmatic API to inject HTML modifications HOT 3
- SSR transform drops `map.sources` when multiple `sources`
- lib打包模式,能否跟webpack一样,可以使用split chunks打包出一堆碎文件。
- Environment variable value not reloading when ".env changed, restarting server..." if process.env. is mutated once HOT 1
- Aliases are not resolved for CSS URLs with fragments HOT 1
- vite 打包出来的defineAsyncComponent异步加载文件不携带referrer HOT 2
- Generated an empty chunk: "lodash-unified" HOT 2
- Generated an empty chunk: "lodash-unified" HOT 1
- How do I use ENV variables in static .js files?
- SyntaxError: Identifier 'global' has already been declared while importing a json file with "global" key in SSR environment HOT 1
- Support Vanilla JS CSS Modules / CSS import attributes HOT 1
- css局部样式只限定格式为.module.的文件,无法手动配置,希望能用globalModulePaths属性进行判断 HOT 1
- 通过 raw 引入 ts 模块,代码未编译 HOT 3
- Globals are not accessible in a service worker
- When referencing an environment variable that doesnt exist, vite dumps your whole environment into the bundle as an object HOT 16
- Consider routers in Vite's development HOT 1
- bug: vite binary crashes during hosting a static build
- bug: Inconsistent path separator in resolveId() on Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite.