"not found: notify-send" with laravel-elixir on a headless VM
Closed this issue · 5 comments
On a headless VM, you obviously don't want notify-osd
installed, and I'd expect gulp-notify
to fall down on plain terminal logging. Instead, it attempts to blindly call notify-send
, which obviously fails…
I'm not sure if this is actually gulp-notify's fault, a dependency, or laravel-elixir - tell me if I should reopen this in a more appropriate repository.
I had the same error on a Docker container
This happens, I think, on pure servers which do not have any desktop installed.
There should be a a way to supress this error, either automatically, or optionally.
Still seeing this when running on docker
@MattiJarvinen-BA and @lazychino try with adding this line to your Dockerfile:
ENV DISABLE_NOTIFIER true
The documentation says:
If you are running on a system that handles notifications poorly or you simply do not wish to use gulp-notify but your project does? You can disable gulp-notify by using enviroment variable DISABLE_NOTIFIER. This will disable all methods; notify(), notify.onError and notify.withReporter.
@liclac and @lazytyper
In a "plain" server environment just use export DISABLE_NOTIFIER=true;
to achieve the same result.
This was literally three years ago. Thanks though??