-
Notifications
You must be signed in to change notification settings - Fork 49
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
Error when using "idea" in alfred #15
Comments
Hi @tjosinga |
Both v6.14.3 and v11.14.0 in NVM. I have set the latter as default, but maybe the problem is that Alfred is not using the correct version? |
The system version seems to be 11.12. |
Aaa, yes, Alfred uses v6.14.3. So I tried installing a new version of node.js as system version (without nvm), using the instructions on: https://solarianprogrammer.com/2016/04/29/how-to-upgrade-nodejs-mac-os-x/ Then I noted that there is a new version 1.0.10, so I removed 1.0.9 and installed 1.0.10, and it worked. |
So in short, when using NVM one may think he is using a recent version of node.js (based on the output in shell), but in fact, it may be an old version. |
o_O I did not change stuff on this in 1.0.10... I know that Alfred doesn't export your path, but a "lighter one" maybe it's related. I use Alfy under the hood, which handle this case (sindresorhus/alfy#73 (comment)) |
Hi @tjosinga, I add a validation of node version at the begin of the process. It will be more easier to debug. Thanks for your help |
👍 |
Description
In the terminal, the command-line
idea ./
works perfectly, but not when using Alfred. I get an "Unexpected token ..." error in Alfred, which I can copy:In another issue you requested the content of the idea file. In my case it is:
Step to reproduce
Just by typing idea in Alfred.
The text was updated successfully, but these errors were encountered: