运行gulp服务时出错

所以我试图build立一个开发环境,我使用吞咽。

但是,安装完所有依赖后,我得到这个错误:

Hariss-MacBook-Pro:teacher haris$ gulp serve [19:00:28] Using gulpfile ~/teacher/gulpfile.js [19:00:28] Starting 'statics'... [19:00:28] Finished 'statics' after 1.92 ms [19:00:28] Starting 'jshint'... [19:00:28] Starting 'clean-css'... [19:00:28] Starting 'templates'... [19:00:28] Server started on 3000 port [19:00:28] Finished 'clean-css' after 12 ms [19:00:28] Starting 'styles'... [19:00:28] Finished 'templates' after 35 ms [19:00:28] Finished 'jshint' after 336 ms Assertion failed: (val->IsString()), function _NanGetExternalParts, file ../node_modules/nan/nan.h, line 1725. Abort trap: 6 Hariss-MacBook-Pro:teacher haris$ 

我首先虽然这是一种特定的Windows问题,所以我尝试了在我的Mac,但也发生了同样的错误。

有谁知道这是什么,或者可以给我们提示下一步做什么?

问候

gulp-sass的当前版本有这个问题 。 如果你正在使用它,然后降级到版本0.7.1。 如果你有一个package.json文件,那么指定版本号:

 "gulp-sass": "0.7.1" 

并运行npm install 。 如果您只是使用npm install而不使用package.json ,则执行以下命令:

 npm install gulp-sass@0.7.1