windows下安装git bash
1.下载并安装
$ git clone https://github.com/syntaxhighlighter/syntaxhighlighter.git $ cd syntaxhighlighter $ npm install
– 1关于load from cache问题的解决方法
After installing npm dependencies, go into node_modules/songbird/lib/songbird.js and change
Promise = global.Promise || require(“bluebird”);
to
Promise = require(“bluebird”);
This will make sure the extensions for Promise are available.
– 2关于 git clone access 问题的解决方法
git config –global –unset http.proxy git config –global –unset https.proxy
git更新到2.0以上或安装最新版git
windows下设置
git config –global http.postBuffer 524288000
git config –global http.postBuffer 1048576000
2.创建工程
./node_modules/gulp/bin/gulp.js setup-project
3.编译
./node_modules/gulp/bin/gulp.js build –brushes=all –theme=default
编译后的文件在dist目录下。js+css.
建议在linux环境下执行。