mac 环境gulp安装构建(全)

2018-11-13  本文已影响0人  zh_harry

安装XCode

xcode-select --install

安装Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装node

brew install node

全局安装gulp

npm install --global gulp

项目内安装

 cd project_path;//(项目所在根目录)
 npm install --save-dev gulp

gulp构建

gulp

淘宝镜象

因为网联问题可能卡死,配置淘宝镜象

npm --registry https://registry.npm.taobao.org install express
npm config set registry https://registry.npm.taobao.org

ERROR

npm cache clean --force
上一篇 下一篇

猜你喜欢

热点阅读