运行一个vue项目vite-electron-vue

必备软件:

1) visual studio code
2) nodejs 18.16.0
3) yarn

下载源码:

项目fork 自 https://gitee.com/mywink/vite-electron.git

git clone https://gitee.com/panie/vite-electron-vue.git

运行项目

1/ 采用vscode 打开文件夹
2/ 查看一下各种命令的版本

$ node -v
v18.16.0

# 更改源。 首次安装一定要更改源,要不然下面的命令慢到会怀疑人生
$ npm config set registry https://registry.npm.taobao.org -g 
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

$ npm -v
9.5.1

# 升级
$ npm install npm -g

$ npm -v
9.6.4

# 安装
$ npm install -g yarn

( npm uninstall yarn)

# 查看版本
$ yarn -version
$ yarn install

# 查看package.json 中设置的快捷命令方式
$ yarn run dev
posted @ 2023-04-19 14:35  panie2015  阅读(38)  评论(0编辑  收藏  举报