我正在尝试构建一个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
并获得以下错误:
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)
发布于 2014-06-18 16:01:16
您使用的是什么版本的gulp-notify
?我们在linux机器上的CI-系统上也有类似的问题(请参阅此问题)。为了解决这个问题,我们将gulp-notify
更新为实际版本1.3.1。
若要更新开发依赖项,必须先删除实际版本并重新安装。npm
中的一个已知错误是,您不能在开发依赖项上使用npm update
。那我该怎么办?
# remove
npm rm --save-dev gulp-notify
# install again
npm install --save-dev gulp-notify
希望这对你有帮助。
齐奥·拉尔夫
发布于 2014-06-17 00:30:30
这是一个众所周知的问题:https://github.com/webcomm/magento-boilerplate/issues/32
解决办法:
将gulp更新为3.5.6
"devDependencies": {
"gulp": "~3.5.6",
}
发布于 2017-06-28 01:24:26
尝试以下命令:
npm install --save gulp-notify
//使用保存这将在package.json中保存依赖项
希望这能成功!!
https://stackoverflow.com/questions/24259055
复制