1、搭建脚手架
yarn global add @vue/cli
2、创建
vue create 项目名(全小写)
vetur插件
3.初始化包管理文件
npm init
npm init -y
npm config set registry https://registry.npm.taobao.org 【设置从淘宝下载】
4.下载第三方模块
npm i 模块名 运行依赖
npm i jquery
npm i swiper
npm i 模块名 -S 运行依赖
npm i jquery -S
npm i swiper -S
npm i popper.js -S
npm i bootstrap -S
npm i 模块名 -D 开发依赖
npm i webpack -D
npm i gulp -D
npm i webpack@5.0-D
根据包管理文件一次下载所有依赖
npm i
全局安装
npm i 模块名 -g
npm i yarn -g