前端开发环境配置指南。
安装 VsCode
https://code.visualstudio.com/
安装 VsCode 插件
https://segmentfault.com/a/1190000037687178
安装 iTerm2
安装 Homebrew
$ /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安装 wget
$ brew install wget
安装 oh-my-zsh
- 复制脚本: https://gitee.com/mirrors/oh-my-zsh/blob/master/tools/install.sh
- 本地新建
install.sh
文件,并将复制的内容粘贴进去
# 执行如下命令为 install.sh 文件添加执行权限
$ chmod +x install.sh
# 执行 install.sh 脚本安装 oh my zsh
$ sh install.sh
安装 oh-my-zsh
插件
https://www.zrahh.com/archives/167.html
安装 nvm
方案一(推荐)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
方案二
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
安装 node
$ nvm install stable --registry=https://registry.npm.taobao.org
安装 nrm
$ npm i nrm -g
参考链接
- 安装zsh:https://blog.csdn.net/qq_29102545/article/details/112255944
- zsh文件:https://gitee.com/mirrors/oh-my-zsh/blob/master/tools/install.sh
- 安装Homebrew:https://blog.csdn.net/qq_42351033/article/details/116566478
- 安装nvm:解決 nvm is not compatible with the npm config “prefix” option: currently set to “/usr/local” 問題