我正在尝试按照本教程构建Sails.js和AngularJS应用程序:
http://thoughtsmarkeddown.com/thoughts/javascript/setting-up-a-sails-js-with-angular-js-app-part-1/
我已经设置了我的Sails应用程序和角度应用程序。 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一起用于eaiser和更快的开发。如果我这样做的方式不对,你能否告诉我一些关于如何制作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)
答案 0 :(得分:2)
您使用的gulp-notify
版本是什么?我们在Linux机器上的CI系统上遇到了类似的问题(参见issue)。为解决此问题,我们已将gulp-notify
更新为实际版本1.3.1。
要更新您的dev依赖项,您必须先删除实际版本并再次安装。来自npm
的已知错误是您无法在开发依赖项上使用npm update
。那我该怎么办?
# remove
npm rm --save-dev gulp-notify
# install again
npm install --save-dev gulp-notify
愿它对你有所帮助。
侨 拉尔夫
答案 1 :(得分:0)
这是一个已知问题: https://github.com/webcomm/magento-boilerplate/issues/32
将gulp更新为3.5.6
"devDependencies": {
"gulp": "~3.5.6",
}
答案 2 :(得分:0)
尝试以下命令:
npm install --save gulp-notify
//使用保存这将保存package.json中的依赖项
希望这会有效!!