-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Wasn't able to find node on my system #1
Comments
What output do you get if you add in |
|
Hmm, weird. Can you try replacing the script with: PATH=$($(echo $SHELL) -ic 'echo $PATH'):/usr/local/bin:$PATH
node index.js "$1" What's the output when running these commands in your Terminal (not in the Alfred workflow):
|
That works Don't think it should matter but FWIW I normally use Fish Adams-MBP-4:~ adz$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.
Adams-MBP-4:~ adz$ zsh --version
zsh 5.0.8 (x86_64-apple-darwin15.0)
Adams-MBP-4:~ adz$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin |
So 0.1.1 is out with the fix btw. http://www.packal.org/workflow/emoj |
I should have been clearer; bash is still my default shell for compatibility reasons, but I don't use it often and it may not be configured in a typical way. I think Alfred hard codes And cool, thanks sir |
Ok, cool :) Last favor. Could you replace it with this and see if it still works? eval $(/usr/libexec/path_helper -s)
export PATH=/usr/local/bin:$($(echo $SHELL) -ic 'echo $PATH'):$PATH
node index.js "$1" Just want to ensure I don't break it again. |
Yep, still works ✔✅🔜👌➡👍☑😌🔄🙌 On Sun, Jun 26, 2016 at 10:36 PM Sindre Sorhus notifications@github.com
|
👍👌😃😄😀👏😎😊😁 |
@sindresorhus does it solve anything by using something like |
@CWSpear Last resort maybe, but hope it doesn't get to that. |
Why is that a last resort? |
Because it's 15 MB, and while I don't mind that, people will complain and call it a waste of space. I also think I can fix it without, so at least gonna try. Packaging as a binary surely come with its own quirk and problems too. |
But most importantly, users don't like installing random binaries and not seeing what kind of source they're running. |
The source is on GitHub, and people are welcome to download and build themselves (or at least if you trust the developer, just check the checksum). I think it's a valid concern, but I don't know if it's really something that is your responsibility. I mean, there are lots of tools/languages/other places that package binaries and stuff (having dabbled in Go, that's all you do!). I can't speak for everyone, but I think the advantages of "just works" and not having to deal with "works in my environment but not yours" greatly outweighs that. Anyway, it's your project, and I know you deal with a ton of projects and issues. I just wanted to offer the suggestion hoping it might help. I definitely won't be offended if you don't take the suggestion =) Thanks for all your awesome work in the Node et al community! |
Hi, thanks for this. Super cool.
I had to tweak some things to get this to work. Don't know if it's my environment but could be useful to know. It wasn't working, I turned on the debug output and got this:
The fist line seems to be ignorable. The second not so much. I changed the script to point to my node (
which node
) which fixed itThanks!
The text was updated successfully, but these errors were encountered: