一、Vue2.0推荐开发环境
注:上面的图片转自Vue2.0 新手入门 — 从环境搭建到发布
本人使用的各个工具的版本为:
Homebrew 3.4.6
node.js v17.9.0
npm 8.5.5
cnpm:
webpack 5.72.0
webpack-cli 4.9.2
Vue 2.9.6
一、安装brew
1、打开终端运行以下命令:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2、出现选择下载源,我选择1
3、输入开机密码继续下载
4、下载完成后提示重启终端或者运行命令source /Users/yeshide/.zprofile,运行命令source /Users/yeshide/.zprofile即可:
source /Users/yeshide/.zprofile
5、安装成功后,查看一下brew的版本信息:
bre