mikaelbr / gulp-notify

gulp plugin to send messages based on Vinyl Files or Errors to Mac OS X, Linux or Windows using the node-notifier module. Fallbacks to Growl or simply logging
MIT License
592 stars 40 forks source link

gulp-notify spawn EACCES #112

Closed bissolli closed 7 years ago

bissolli commented 8 years ago

Hi guys!

I am using Laravel Valet environment with Elixir and I am facing that following issue with gulp-notify:

https://transfer.sh/13bfYe/screen-shot-2016-07-12-at-01.56.34.png

Somebody knows how to fix it?

rovo79 commented 8 years ago

May be unrelated, but do you have Node Notifier installed? https://github.com/mikaelbr/node-notifier

davebeach commented 8 years ago

I am getting the same thing on mac os x.

[20:22:16] Starting 'sass'... [20:22:17] gulp-notify: [SASS Compiled] All SASS files have been recompiled to CSS. [20:22:17] gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' Message: spawn EACCES Details: code: EACCES errno: EACCES syscall: spawn [20:22:17] Finished 'sass' after 710 ms

mikaelbr commented 8 years ago

EACCES seems to be caused by the process not having enough access to the underlying vendor executable (terminal-notifier.app inside the node-notifier module). This maybe caused by installing the node packages as administrator (sudo) or some other users that the current user doesn't have access to. You can try something like changing the owner to the current user on the node_modules directory (node-notifier package). Something like sudo chmod -R a+rwx .... Does that make sense?

joshlewis commented 8 years ago

@mikaelbr Thank you!

bissolli commented 7 years ago

Sorry for the late feedback but I solved the problem deleting my node_modules folder and running npm install again!

mikaelbr commented 7 years ago

Great. Closing this. Thanks for following up.

regepan commented 7 years ago

I got same error on

$ node -v
v6.9.4

But the error is hidden after I upgraded to

$ node -v
v8.4.0

No need to change permission.