Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2: had to manually chmod +x on snoreToast/snoretoast-x*.exe #353

Closed
jakedowns opened this issue Nov 25, 2020 · 3 comments
Closed

WSL2: had to manually chmod +x on snoreToast/snoretoast-x*.exe #353

jakedowns opened this issue Nov 25, 2020 · 3 comments

Comments

@jakedowns
Copy link

just fyi, this tripped me up for a while, and in case anyone on google stumbles on this, if you try running, say:
DEBUG=notifier npm run mix or whatever (in my case i'm looking for laravel-mix / webpack-notifier messages)

and you SEE notifier path and notifier options are called, but you never SEE the notifications,
and you checked Notification Settings, and they're enabled for SnoreToast,

you may need to manually add +x permissions to those exe files within WSL2 for them to actually execute.

maybe a note that could be added to the ReadMe wrt WSL, and/or something that could happen auto-magically via a build step? /shrug

thanks for a great tool!

@jakedowns
Copy link
Author

FWIW, this happened with 6.0.0 and 8.0.0

mikaelbr added a commit that referenced this issue Nov 25, 2020
@mikaelbr
Copy link
Owner

Thanks. Added note in readme!

@pkkummermo
Copy link

pkkummermo commented Dec 19, 2020

Just had this problem and had to chmod +x the .exe vendor files. As a reference, these are the steps you need to run after installing the package.

chmod +x node_modules/node-notifier/vendor/snoreToast/snoretoast-x64.exe
chmod +x node_modules/node-notifier/vendor/snoreToast/snoretoast-x86.exe

A super hackish it's-almost-christmas-and-hey-it-works is to make a postinstall in your package.json file to contain

    "postinstall": "chmod +x node_modules/node-notifier/vendor/snoreToast/snoretoast-x64.exe; chmod +x node_modules/node-notifier/vendor/snoreToast/snoretoast-x86.exe"

(Quiet note, this will crash on all systems that aren't UNIX)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants