安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew -v
安装yarn
brew install yarn --ignore-dependencies
安装nodejs
安装npm:node 包管理
#安装: 安装node的时候,会附带安装npm npm文档:https://www.npmjs.cn/
npm 常用命令:https://www.cnblogs.com/zjl-712/p/11469433.html
#查看npm版本 npm -v
#初始化package.json
npm init
#npm init 的三种方式:
https://blog.csdn.net/zuoYJJW/article/details/89552850
#根据package.json还原包
npm install
#安装某个包
npm install {pacagename}
#使用淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装nvm:node 版本管理
使用 nvm 管理不同版本的 node 与 npm https://www.cnblogs.com/kaiye/p/4937191.html
ES6教程: