vite crear un proyecto Vue

nota de compatibilidad

Vite requiere  Node.js  versión 14.18+, 16+. Sin embargo, algunas plantillas requieren una versión superior de Node para funcionar correctamente. Cuando su administrador de paquetes le avise, actualice su versión de Node.

Usando NPM:

$ npm create vite@latest

 Los pasos son los siguientes: asigne un nombre a su proyecto, seleccione el marco y el idioma

cd en el proyecto que creamos, instale las dependencias e inícielo.

C:\Users\Star\Desktop\Route grabbing>npm create vite@latest
Need to install the following packages:
  [email protected]
Ok to proceed? (y)
√ Project name: ... Route grabbing
√ Package name: ... route-grabbing
√ Select a framework: » Vue
√ Select a variant: » JavaScript

Scaffolding project in C:\Users\Star\Desktop\Route grabbing\Route grabbing...

Done. Now run:

  cd "Route grabbing"
  npm install
  npm run dev


C:\Users\Star\Desktop\Route grabbing> cd "Route grabbing"

C:\Users\Star\Desktop\Route grabbing\Route grabbing>  npm install

added 25 packages in 39s

2 packages are looking for funding
  run `npm fund` for details

C:\Users\Star\Desktop\Route grabbing\Route grabbing>  npm run dev

> [email protected] dev
> vite


  VITE v4.3.9  ready in 700 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h to show help

 Consulte el sitio web oficial de Vite: Inicio | Vite Documentación oficial en chino

Supongo que te gusta

Origin blog.csdn.net/Smile1552911411/article/details/131048911
Recomendado
Clasificación