mac电脑如何配置前端环境
1.node.js的安装
可直接通过官网安装,安装好node后就包含了npm
node官网:https://nodejs.org/en/
2.git的安装
(1)homebrew官网安装
官网地址:https://brew.sh/index_zh-cn.html
在终端输入命令:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
如果直接安装有问题,报以下错误:
curl: (7) Failed to connect to raw.githubusercontent.com port 443:
可通过以下链接方法安装:
https://juejin.im/post/6844903988559773709
(2)安装git
若以上homebrew已安装,可通过以下命令安装git
brew install git
或者通过在AppStore安装Xcode,Xcode会自带git,但是此时又需要登录苹果id才可以安装,有苹果id的话就直接登录,没有的话就注册一个登录
3. mac上github的基本使用
https://www.jianshu.com/p/7edb6b838a2e
4. vscode的安装
推荐史上最全的vscode使用教程
https://zhuanlan.zhihu.com/p/113222681