# 前端项目环境搭建
## 1. 下载node
[node官网](https://nodejs.org/en/)
下载后无脑安装即可,装完后,cmd窗口 node -v 如果返回版本号即安装成功
## 安装镜像
```
npm install -g mirror-config-china
```
cnpm i -g yarn
yarn config set registry http://registry.npm.taobao.org
yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
yarn install - 代替 npm install,速度更快、使用更方便
## 下载项目
```
git clone https://********.git
```
## 进入项目根目录, 右键打开bash窗口,安装前端项目依赖,命令:
```
npm i
```
如有报错,删除node_modules文件夹,重新安装
## 启动项目,在项目根目录,cmd或bash
```
npm start
```
#安装指定版本的
npm i --save @ngu/carousel@1.4.8