laravel gulp-notify:[通知程序中的错误] 未找到插件“gulp-notify”中的错误:notify-send
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31431503/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' not found: notify-send
提问by ajtrichards
I'm trying to setup Gulp in my install of Laravel 5.1. I've ran then command npm install
as specified in the Laravel documentation and that's worked fine.
我正在尝试在我安装的 Laravel 5.1 中设置 Gulp。我已经npm install
按照 Laravel 文档中的说明运行了 then 命令,并且运行良好。
However, when I now run the command gulp
I get the following message:
但是,当我现在运行命令时,gulp
我收到以下消息:
ubuntu@NAME:/var/www/html/FOLDER# gulp
[14:04:56] Using gulpfile /var/www/html/FOLDER/gulpfile.js
[14:04:56] Starting 'default'...
[14:04:56] Starting 'sass'...
[14:04:56] Running Sass: resources/assets/sass/app.scss
[14:04:56] Finished 'default' after 532 ms
[14:04:56] gulp-notify: [Laravel Elixir] Sass Compiled!
[14:04:56] Finished 'sass' after 666 ms
[14:04:56] gulp-notify: [Error in notifier] Error in plugin 'gulp-notify'
not found: notify-send
Has anyone else encountered the error?
有没有其他人遇到过这个错误?
gulp-notify: [Error in notifier] Error in plugin 'gulp-notify'
not found: notify-send
Thanks
谢谢
回答by ajtrichards
I've found a resolution to this issue myself. I ran the following commands on my Ubuntu box:
我自己找到了解决这个问题的方法。我在我的 Ubuntu 机器上运行了以下命令:
sudo apt-get update
sudo apt-get install libnotify-bin
After that, I can now run gulp
and get the following:
之后,我现在可以运行gulp
并获得以下信息:
ubuntu@NAME:/var/www/html/FOLDER# gulp
[14:06:59] Using gulpfile /var/www/html/FOLDER/gulpfile.js
[14:06:59] Starting 'default'...
[14:06:59] Starting 'sass'...
[14:06:59] Running Sass: resources/assets/sass/app.scss
[14:07:00] Finished 'default' after 736 ms
[14:07:00] gulp-notify: [Laravel Elixir] Sass Compiled!
[14:07:00] Finished 'sass' after 931 ms
All looks good. Hopefully that will be of use to other SO users.
一切看起来都不错。希望这对其他 SO 用户有用。
回答by Darvanen
For CentOS/Fedora/RedHat 7 users:
CentOS/Fedora/RedHat 7 用户:
sudo yum install libnotify
(no "-bin")
(没有“-bin”)
回答by Manuel Alejandro Vivas Riverol
I have found the following commands, useful:
我发现以下命令很有用:
npm install notify-send
The problem is gone.
问题消失了。