首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >插件“吞咽-通知”中的错误:没有指定记者

插件“吞咽-通知”中的错误:没有指定记者
EN

Stack Overflow用户
提问于 2014-06-17 08:26:41
回答 3查看 1.6K关注 0票数 0

我正在尝试构建一个Sails.js和AngularJS应用程序,遵循本教程:

http://thoughtsmarkeddown.com/thoughts/javascript/setting-up-a-sails-js-with-angular-js-app-part-1/

我已经设置了我的帆应用程序和角应用程序。Ater设置gulp文件,在这里可以找到:

http://thoughtsmarkeddown.com/assets/Uploads/gulpfile.js

我从根文件夹运行命令gulp并获得以下错误:

代码语言:javascript
运行
复制
stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
[gulp] Error in plugin 'gulp-notify': No reporter specified.

我不知道如何调试这个。这是我的第一个AngularJS应用程序。只是想把它和Sails和更快的开发结合起来。如果我做错了,你能建议我在其他地方读到如何制作AngularJS + Sails.js应用程序吗?

以下是完整的堆栈跟踪:

代码语言:javascript
运行
复制
[11:22:30] Using gulpfile ~/Prophesee Media/PropheseeDashboard/gulpfile.js
[11:22:30] Starting 'sass'...
[11:22:30] Finished 'sass' after 7.93 ms
[11:22:30] Starting 'sailsbasejs'...
[11:22:30] Finished 'sailsbasejs' after 3.04 ms
[11:22:30] Starting 'angularappjs'...
[11:22:30] Finished 'angularappjs' after 1.26 ms
[11:22:30] Starting 'bowerjs'...
[11:22:30] Finished 'bowerjs' after 5.78 ms
[11:22:30] Starting 'angularviews'...
[11:22:30] Finished 'angularviews' after 446 μs
[11:22:30] Starting 'watch'...
[11:22:30] Finished 'watch' after 216 ms
[11:22:30] Starting 'default'...
[11:22:30] Finished 'default' after 5.71 μs

stream.js:94
  throw er; // Unhandled stream error in pipe.
        ^
[gulp] Error in plugin 'gulp-notify': No reporter specified.
    at report (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp-                 notify/index.js:70:34)
    at Transform.notify [as _transform] (/home/sambhav/Prophesee     Media/PropheseeDashboard/node_modules/gulp-notify/index.js:19:5)
    at Transform._read (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp-notify/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Transform._write (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp-notify/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp-notify/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:238:10)
    at writeOrBuffer (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp-notify/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:228:5)
    at Transform.Writable.write (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp-notify/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:195:11)
    at Stream.ondata (stream.js:51:26)
    at Stream.EventEmitter.emit (events.js:95:17)
    at queueData (/home/sambhav/Prophesee Media/PropheseeDashboard/node_modules/gulp/node_modules/vinyl-fs/node_modules/map-stream/index.js:43:21)
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-06-19 00:01:16

您使用的是什么版本的gulp-notify?我们在linux机器上的CI-系统上也有类似的问题(请参阅此问题)。为了解决这个问题,我们将gulp-notify更新为实际版本1.3.1。

若要更新开发依赖项,必须先删除实际版本并重新安装。npm中的一个已知错误是,您不能在开发依赖项上使用npm update。那我该怎么办?

代码语言:javascript
运行
复制
# remove
npm rm --save-dev gulp-notify
# install again
npm install --save-dev gulp-notify

希望这对你有帮助。

齐奥·拉尔夫

票数 2
EN

Stack Overflow用户

发布于 2014-06-17 08:30:30

这是一个众所周知的问题:https://github.com/webcomm/magento-boilerplate/issues/32

解决办法:

将gulp更新为3.5.6

代码语言:javascript
运行
复制
"devDependencies": {
    "gulp": "~3.5.6",
  }
票数 0
EN

Stack Overflow用户

发布于 2017-06-28 09:24:26

尝试以下命令:

npm install --save gulp-notify //使用保存这将在package.json中保存依赖项

希望这能成功!!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24259055

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档