假设后台已经部署好
开发环境,需要安装node8.x最新版,及以gitbash最新版本,因为要从git上 下载项目
- # 克隆项目
- git clone https://github.com/daxiongYang/renren-fast-vue.git
- # 安装依赖
- npm install
- # 启动服务
- npm run dev
因为原镜像访问慢,换成淘宝镜像。也就是上面第4步时,先切换镜像
1.得到原本的镜像地址
npm get registry
> https://registry.npmjs.org/
设成淘宝的
npm config set registry http://registry.npm.taobao.org/
2.换成原来的
npm config set registry https://registry.npmjs.org/