Cov txheej txheem:

Kuv paub kuv VUE version li cas?
Kuv paub kuv VUE version li cas?

Video: Kuv paub kuv VUE version li cas?

Video: Kuv paub kuv VUE version li cas?
Video: Npaum Li Cas - David Yang (Prod. By Keeneng Vang) 2024, Kaum ib hlis
Anonim

6 Teb

  1. Run npm vue (los npm list --depth=0 | grep vue kom tsis suav cov pob khoom 'dependencies). Nws yog ib txoj hauv kev zoo rau kuaj npm package version nyob rau hauv lub davhlau ya nyob twg.
  2. Tau kawg, koj tuaj yeem ua tau kuaj cov vue version los ntawm kev tshawb nrhiav pob. json (los yog siv cov lus txib zoo li pob tsawg.
  3. Siv Vue . version thaum lub sij hawm khiav.

Tsuas yog Vue version tshiab yog dab tsi?

Vue 3.0. 0 yog yav tom ntej version ntawm ib qho ntawm cov tsev qiv ntawv JavaScript nrov tshaj plaws hauv ntiaj teb. Vue kev muaj koob meej loj hlob thiab qhov project tau nrawm dua & zoo dua nrog txhua qhov hloov tshiab. Evan You tshaj tawm qhov tshiab Vue version hauv London thaum Lub Kaum Ib Hlis 15th hauv 2018.

Ib sab saum toj no, kuv yuav teeb Vue li cas? Teeb Vue. js project hauv 5 kauj ruam yooj yim siv vue-cli

  1. Kauj ruam 1 npm nruab -g vue-cli. Cov lus txib no yuav nruab vue-cli thoob ntiaj teb.
  2. Kauj Ruam 2 Syntax: vue init piv txwv: vue init webpack-simple new-project.
  3. Kauj ruam 3 cd new-project. Hloov directory rau koj qhov project folder.
  4. Kauj ruam 4 npm install.
  5. Kauj ruam 5 npm khiav dev.

Tseem xav paub, Vue CLI ntsia qhov twg?

Hauv ib Vue CLI qhov project, @ vue / cli -service nruab ib lub npe binary vue - cli - kev pabcuam. Koj tuaj yeem nkag mus rau binary ncaj qha li vue - cli -service hauv npm scripts, los yog./node_modules/. hauv / vue - cli - kev pabcuam los ntawm lub davhlau ya nyob twg. Koj tuaj yeem khiav cov ntawv sau nrog cov yam ntxwv ntxiv siv GUI nrog rau vue ua command.

Kuv yuav hloov kho li cas rau Vue CLI 3?

Nov yog kuv cov kauj ruam (cia xav tias kuv lub app hu ua myapp): Nruab tus Vue Cli 3 s npm nruab -g @ vue / cli . Tsim ib qhov project tshiab nrog vue tsim myapp- ua cli3 . Luam cov ntsiab lus ntawm src nplaub tshev los ntawm qub app mus rau tshiab app.

Pom zoo: