Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 (edited) @deanishe alfred-link doesn't work when running as root, please stop spreading misinformation @Gavzel Try running this command wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/87277d2d2abe4acf3c29488d7ebcc5994b979596/npm-g-nosudo.sh | sh and then open a new terminal session, `npm i -g alfred-polyglot` should for fine then. Edited February 17, 2019 by Nikersify permalink Link to comment
Gavzel Posted February 17, 2019 Share Posted February 17, 2019 Path I get: Users/joellelemoan 1/System/Library/Caches No Preferences in it. I only get: Macintosh HD/Library/Preferences/ I don’t know where is this file ? com.runningwithcrayons.Alfred-Preferences-3.plist Link to comment
Gavzel Posted February 17, 2019 Share Posted February 17, 2019 @Nikersify I git this : jlmretina:~ jlm$ wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/87277d2d2abe4acf3c29488d7ebcc5994b979596/npm-g-nosudo.sh | sh -bash: wget: command not found So I haven't try to follow with: 'npm i -g alfred-polyglot' in a new terminal windows Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 @Gavzel Oh my bad, try this instead and then run the install command in a new window: curl -sSL https://raw.githubusercontent.com/glenpike/npm-g_nosudo/87277d2d2abe4acf3c29488d7ebcc5994b979596/npm-g-nosudo.sh | sh Link to comment
Gavzel Posted February 17, 2019 Share Posted February 17, 2019 @Nikersify Look great ! Thanks ! 😊 Except when I made try, I got this error: Try : "trans non from fr" "Error : Activate this item to try again. Cmd+L to see stack trace" Do I forget something ? Workflow appear in Alfred's List. Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 @Gavzel You've installed it correctly, nice! Without seeing the stack trace I'm guessing the issue is the same as with almost everybody else also experiencing problems - Google blocking the translate requests for. The workflow might work for you on a different internet connection, for now I'm afraid there's nothing we can do. Sorry for the trouble. Link to comment
Gavzel Posted February 17, 2019 Share Posted February 17, 2019 ⌘L show something about Google translate api. Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 (edited) @Gavzel Yep, that's the thing I was talking about. Edited February 17, 2019 by Nikersify Link to comment
deanishe Posted February 17, 2019 Share Posted February 17, 2019 1 hour ago, Nikersify said: alfred-link doesn't work when running as root, please stop spreading misinformation And npm install -g doesn't work as non-root when you've previously run it as root. Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 @deanishe I agree! Link to comment
deanishe Posted February 17, 2019 Share Posted February 17, 2019 5 minutes ago, Nikersify said: @deanishe I agree! Which she had already done: 3 hours ago, Gavzel said: jlmretina:~ jlm$ npm i -g alfred-polyglot npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules Link to comment
Gavzel Posted February 17, 2019 Share Posted February 17, 2019 @Nikersify So actually, we can't use this Workflow ? Bad luck, it's look so nice… 😕 Please don't fight about me and my previous problem, using "sudo" or not. Workflow has been installed even if I can't use it really. 😀 I just hope than I haven't installed twice (local and global in root) ? Link to comment
btriapitsyn Posted February 17, 2019 Share Posted February 17, 2019 @Nikersify Hi! I hope you can help me with my issue. Here is my error: btriapitsyn at Bohdan’s-MacBook-Pro in ~$ /usr/local/bin/npm install -g alfred-polyglot > alfred-polyglot@1.2.1 preuninstall /Users/btriapitsyn/.npm-packages/lib/node_modules/alfred-polyglot > alfy-cleanup { Error: Command failed: alfred-unlink { [Error: ENOENT: no such file or directory, open '/Users/btriapitsyn/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/alfred-polyglot/info.plist'] errno: -2, code: 'ENOENT', syscall: 'open', path: '/Users/btriapitsyn/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/alfred-polyglot/info.plist' } at Promise.all.then.arr (/Users/btriapitsyn/.npm-packages/lib/node_modules/alfred-polyglot/node_modules/execa/index.js:201:11) at processTicksAndRejections (internal/process/next_tick.js:81:5) code: 1, killed: false, stdout: '', stderr: "{ [Error: ENOENT: no such file or directory, open '/Users/btriapitsyn/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/alfred-polyglot/info.plist']\n errno: -2,\n code: 'ENOENT',\n syscall: 'open',\n path:\n '/Users/btriapitsyn/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/alfred-polyglot/info.plist' }\n", failed: true, signal: null, cmd: 'alfred-unlink', timedOut: false } npm WARN lifecycle alfred-polyglot@1.2.1~preuninstall: continuing anyway alfred-polyglot@1.2.1 preuninstall: `alfy-cleanup` npm WARN lifecycle Exit status 1 > alfred-polyglot@1.2.1 postinstall /Users/btriapitsyn/.npm-packages/lib/node_modules/alfred-polyglot > alfy-init + alfred-polyglot@1.2.1 updated 1 package in 4.425s Also here is my specs: btriapitsyn at Bohdan’s-MacBook-Pro in ~$ npm -v 6.7.0 btriapitsyn at Bohdan’s-MacBook-Pro in ~$ which npm /usr/local/bin/npm btriapitsyn at Bohdan’s-MacBook-Pro in ~$ echo $PATH /Users/btriapitsyn/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin btriapitsyn at Bohdan’s-MacBook-Pro in ~$ sw_vers -productVersion 10.14.3 Thanks for your work! Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 @btriapitsyn Same issue as above, I can't do anything, sorry. Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 @Gavzel No, you never installed in `root`, don't worry about that - it's just the workflow. Link to comment
Nikersify Posted February 17, 2019 Author Share Posted February 17, 2019 @deanishe I'll say it again - `alfred-link` just doesn't work when running with sudo as it can't find the .plist for some reason, she did run `npm i -g` without sudo indeed but had npm misconfigured so that it was requiring root to install packages globally - hence the issue. I apologize if I sounded like I was attacking you @deanishe - I don't mean to fight or anything, I'm just trying to clear any confusions 😄 Link to comment
deanishe Posted February 17, 2019 Share Posted February 17, 2019 (edited) 26 minutes ago, Nikersify said: I'll say it again - `alfred-link` just doesn't work when running with sudo Yes, I understood the first time you said it, though I did not realise that npm install also performs the linking step. I avoid all Node-based workflows that require this install method because it causes lots of problems. Thank you for letting me know. Next time someone has sudoed their node_modules, I will tell them how to fix that instead of using sudo npm i. I've also got no idea why alfred-link doesn't work. sudo behaviour is weird sometimes. Edited February 17, 2019 by deanishe Link to comment
SSardorf Posted February 19, 2019 Share Posted February 19, 2019 Error at /usr/local/lib/node_modules/alfred-polyglot/node_modules/google-translate-api/index.js:105:17 at process._tickCallback (internal/process/next_tick.js:68:7) I get this error. I installed it using NPM, but using this "sudo npm install -g alfred-polyglot" Link to comment
nutmeg Posted March 31, 2019 Share Posted March 31, 2019 On 2/19/2019 at 1:47 PM, SSardorf said: Error at /usr/local/lib/node_modules/alfred-polyglot/node_modules/google-translate-api/index.js:105:17 at process._tickCallback (internal/process/next_tick.js:68:7) I get this error. I installed it using NPM, but using this "sudo npm install -g alfred-polyglot" I'm getting the same error. Link to comment
noodles5 Posted August 19, 2019 Share Posted August 19, 2019 Looks like a cool workflow I did the `npm install` and it seemed to run fine -- no error messages, anyway. But -- the workflow is not installed. If I go to Alfred Preferences, it's not in my list of workflows. Any thoughts? Link to comment
Nikersify Posted August 20, 2019 Author Share Posted August 20, 2019 15 hours ago, noodles5 said: Looks like a cool workflow I did the `npm install` and it seemed to run fine -- no error messages, anyway. But -- the workflow is not installed. If I go to Alfred Preferences, it's not in my list of workflows. Any thoughts? An underlying library that polyglot uses to install itself doesn't support Alfred 4, will have to wait for a fix: https://github.com/SamVerschueren/alfred-link/issues/23 Link to comment
mixterdee Posted August 28, 2019 Share Posted August 28, 2019 I really want this to work. I got everything installed fine and the first translation worked perfectly now when I try I just get the following errors I use translations all day so having this working would be a great addition to Alfred for me. Can you point me in the right direction to get this working? TIA Link to comment
Nikersify Posted September 11, 2019 Author Share Posted September 11, 2019 Update v1.4.0 I've pushed a new version of the workflow to npm, you can upgrade by running $ npm install -g alfred-polyglot Notable changes since v1.3.1: - The workflow now supports Alfred 4 - Stability improvements with Google Translate, thanks to the awesome work of vitalets (https://github.com/vitalets/google-translate-api) @noodles5 @mixterdee Link to comment
Xusqui Posted September 29, 2019 Share Posted September 29, 2019 As promised... I had an eye on this... After the new 1.4.0 release, it works like a charm!!! GOOD JOB!!! Love your work, congrats! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now