使用管理员权限打开vscode编辑器
在终端执行如下命令:
1.解除脚本禁用: set-ExecutionPolicy RemoteSigned
2.设置仓库地址为国内地址: npm config set registry https://registry.npmmirror.com
3.下载yar工具 npm install yarn -g
4.创建名称为hello-vite 的vue项目 yarn create vite hello-vite --template vue
5.切换路径到项目的根目录 cd hello-vite
6.下载第三方的包(下载vite) yarn
7.在项目根目录运行服务 yarn dev
请输入图片描述

分类: 软件分享 标签: 暂无标签

评论

全部评论 1

  1. stfakympfc
    stfakympfc
    Google Chrome Windows 10
    兄弟写的非常好 https://www.cscnn.com/

目录