【问题标题】:Error in plugin 'gulp-notify': No reporter specified插件“gulp-notify”中的错误:未指定报告者
【发布时间】:2014-08-07 04:26:28
【问题描述】:

我正在尝试按照本教程构建 Sails.js 和 AngularJS 应用程序:

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

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

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

我从我的根文件夹运行命令gulp 并收到以下错误:

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
[gulp] Error in plugin 'gulp-notify': No reporter specified.

我不知道如何调试它。这是我的第一个 AngularJS 应用程序。只是试图将它与 Sails 一起使用,以实现更轻松、更快的开发。如果我做错了,你能否建议我在其他地方阅读有关如何制作 AngularJS + Sails.js 应用程序的信息。

以下是完整的堆栈跟踪:

[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)

【问题讨论】:

    标签: node.js angularjs sails.js bower gulp


    【解决方案1】:

    试试下面的命令:

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

    希望这会奏效!!

    【讨论】:

      【解决方案2】:

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

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

      # remove
      npm rm --save-dev gulp-notify
      # install again
      npm install --save-dev gulp-notify
      

      希望对你有帮助。

      Ciao 拉尔夫

      【讨论】:

        【解决方案3】:

        这是一个已知问题: https://github.com/webcomm/magento-boilerplate/issues/32

        解决方案:

        将 gulp 更新到 3.5.6

        "devDependencies": {
            "gulp": "~3.5.6",
          }
        

        【讨论】:

        • 不,不能解决问题。我已经测试了 v 3.5.2、3.5.6 和 3.8.0。更新了全局和 cli 版本
        猜你喜欢
        • 2015-10-04
        • 2021-09-14
        • 1970-01-01
        • 2016-11-29
        • 1970-01-01
        • 2013-09-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多