前端环境配置
安装node
// powshall 打开执行
npm config set registry http://registry.npm.taobao.org/
// 检查是否更换成功
npm config get registry
安装 VS Code
安装 git
git --version
git config --list
git config --global user.name 'chuwx'
git config --global user.email 'jay@126.com'
git clone SSH 地址
- 问我要基于哪个分支开发 vscode 左下角 点击去
- 创建自己的分支(问下咱们创建 分支 有命名要求吗)
- 随便改改点代码
git add .
git commit -m "test"
git push (git push --set-upstream origin cccc)
vs code 插件
- Vetur v0.35.0
- Gitlens v11.6.1
- live Server v5.6.1
- ESLint v2.2.2
安装谷歌浏览器
github 配置
ssh-keygen -t rsa -C "chuwx1024@126.com"
- 我的电脑 C:\Users\XXX.ssh\id_rsa.pub
- 在当前文件夹下 打开 powershall
cat id_rsa.pub
- 拿到 id_rsa.pub 后 粘贴到 github --> settings--> SSH and GPG keys
- 如果是 gitlab settings--> SSH keys 直接粘贴