作为一个前端你电脑中都安装了那些工具、前端必备环境
# brew (mac中的包管理工具)(官网:/index_zh)
/usr/bin/ruby -e "$(curl -fsSL /Homebrew/install/master/install)"
# git
brew install git
# nvm (node管理工具)(选装)(安装完了还需要配置环境,参照GitHub)
# github:/nvm-sh/nvm
curl -o- /nvm-sh/nvm/v0.34.0/ | bash
# node (也可以去官网下载安装、mac还可以使用brew安装)(官网:/)
nvm install stable # 安装最新版
nvm install --lts # 安装长期支持版
brew install node # (mac)也可以使用这个命令安装
# cnpm
npm install -g cnpm --registry=
# npm config set registry
# yarn (mac,win自己去官网查)
brew install yarn
# live-server
npm install -g live-server
# Nginx (mac,win自行查资料)
brew install nginx
# Typescript
npm install -g typescript
# Webpack (建议安装在项目中,不全局安装)
npm install --save-dev webpack
npm install --save-dev webpack-cli # 4.0版本还需要安装cli
# Gulp
npm install -g gulp
# Vue
npm install -g vue
# React
cnpm install -g create-react-app