type
status
date
slug
summary
tags
category
icon
password
安装vue脚手架
安装vue-cli步骤
安装node:
brew install node
下载源设置为淘宝镜像:
npm config set registry https://registry.npm.taobao.org
安装脚手架:npm install -g @vue/cli;
创建脚手架项目

image-20220626143345632
这里选择vue2
启动脚手架项目
执行npm run serve

image-20220626143636737
打开开发者工具,可以看到这是vue写的一个helloworld

image-20220626143723824