ivyone@ivyonedeMacBook-Pro ~ % npm init @vitejs/app
npx: 5 安装成功,用时 2.199 秒
✔ Project name: · vite-hami01
Scaffolding project in /Users/ivyone/vite-hami01...
✔ Select a template: · vue
Done. Now run:
cd vite-hami01
npminstallnpm run dev
ivyone@ivyonedeMacBook-Pro ~ % cd vite-hami01
ivyone@ivyonedeMacBook-Pro vite-hami01 % npminstall>[email protected] postinstall /Users/ivyone/vite-hami01/node_modules/esbuild
> node install.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
added 59 packages from 85 contributors in 6.668s
3 packages are looking for funding
run `npm fund`for details
╭───────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.11 → 7.7.0 │
│ Changelog: https://github.com/npm/cli/releases/tag/v7.7.0 │
│ Run npminstall -g npm to update! │
│ │
╰───────────────────────────────────────────────────────────────╯
ivyone@ivyonedeMacBook-Pro vite-hami01 % npm run dev
>[email protected] dev /Users/ivyone/vite-hami01
> vite
Pre-bundling dependencies:
vue
(this will be run only when your dependencies or config have changed)
vite v2.1.2 dev server running at:
> Local: http://localhost:3000/
> Network: http://192.168.3.11:3000/
ready in 672ms.
[@vue/compiler-sfc]<script setup> is still an experimental proposal.
Follow its status at https://github.com/vuejs/rfcs/pull/227.
[@vue/compiler-sfc] When using experimental features,
it is recommended to pin your vue dependencies to exact versions to avoid breakage.