vuetify & electron

1. Installation Node 

2. Installation vue / cli
$ npm install @vue/cli -g

3.创建应用并进入应用目录
$ vue create my-app
$ cd my-app
4. Add electron-builder
$ vue add electron-builder
Electron version will let you choose, you can default

Then a long and turtle-speed download, wait

There is a high probability installation fails, basically a network problem (you know)

So, let's set up the source address of the electron is amended as Taobao Mirror

$ npm config set electron_mirror https://npm.taobao.org/mirrors/electron/

Then again 

$ vue add electron-builder

Instant success! ! ! 

5. Addvuetify

$ vue add vuetify

6. Run

$ npm run electron:serve

 

 

Guess you like

Origin www.cnblogs.com/fansite/p/11324737.html