---
title: "gulp"
author: "jatter"
date: "2017-12-25T09:33:15Z"
tags: []
categories: ["Web前端"]
slug: "gulp"
draft: false
lastmod: "2017-12-25T09:33:15Z"
id: 2405616
url: "https://jatter.iteye.com/blog/2405616"
---

#下载项目工程源码

$ git clone git@221.6.35.18:wangwenjia/mobile\_b2b\_cloud.git

 

#安装淘宝的cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

 

#安装淘宝的cnpm

$ alias cnpm="npm --registry=https://registry.npm.taobao.org \\

--cache=$HOME/.npm/.cache/cnpm \\

--disturl=https://npm.taobao.org/dist \\

--userconfig=$HOME/.cnpmrc"

 

 

#更新npm

$ npm install npm -g

 

#安装python2.7 ,且在环境变量path中添加 python2 = C:\\Python27

$ cnpm install gulp-sass --save-dev

 

#安装项目相关依赖包

npm install --save-dev

 

#安装bower组件

npm install -g bower

 

#安装bower相关包

bower install --save-dev

 

 

cnpm install jshint gulp-jshint --save-dev