分类 美妙前端 下的文章

nodejs安装(为了使用nodejs以及npm命令)

1、到nodejs官网(http://nodejs.cn/download/)下载最新的软件包

2、安装nodejs(全部默认即可)

3、全局安装yarn命令(包管理工具): npm install -g yarn

4、配置yarn国内源: yarn config set registry https://registry.npm.taobao.org/

5、查看yarn配置是否正确: yarn config get registry

6、清理yarn缓存: yarn cache clean

安装git环境

1、转到Git官网(https://git-scm.com/)下载最新的软件

2、安装软件(全部默认即可,如果不是默认,有些软件需要手动修改git目录配置)

3、设置git全局用户名与邮箱

4、生成密钥(用户SSH连接git仓库)

安装Git可视化工具(sourceTree或者tortoiseGit)