Nikersify Posted February 14, 2018 Share Posted February 14, 2018 (edited) Hey, I've made my own translation workflow, as the existing ones which I could find didn't quite suit my needs or lacked in some aspects. Features: "Natural language" input Text auto correction, language auto correction Easy setup Configurable 100% free Preview: Dependencies: node.js >=7.6 Installation: Just run the following command in your terminal: $ npm i -g alfred-polyglot ...or (not recommended) you can download it directly from the GitHub releases page if you don't want to use npm. Note that if you would like to use the npm way in the future you will have to uninstall the workflow completely first. You can also go through the easy, but optional setup. Have fun! GitHub Edited May 26, 2018 by Nikersify add .alfredworkflow mention drwatson, JolinM and vanderholm 1 2 Link to comment
Nikersify Posted February 20, 2018 Author Share Posted February 20, 2018 6 hours ago, Nutron said: I Keep getting an error npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! alfred-polyglot@1.0.0 postinstall: `alfy-init` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alfred-polyglot@1.0.0 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. Can you send more log output? What's your node.js version? Link to comment
Milly Bays Posted February 22, 2018 Share Posted February 22, 2018 (edited) I get the same error, would love to have this workflow - it's exactly what I'm looking for. I'm using node.js 8.9.4. Edited February 22, 2018 by Milly Bays Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 (edited) 9 hours ago, Milly Bays said: I get the same error, would love to have this workflow - it's exactly what I'm looking for. I'm using node.js 8.9.4. Just tried installing it myself on 8.9.4 and works fine for me. You can try prepending the command with sudo: sudo npm install -g alfred-polyglot ...and if that doesn't work please do send the whole npm-debug.log file that gets generated. You can find the path to it in the output at the end of the failed installation, should look somewhat as the following: npm ERR! A complete log of this run can be found in: npm ERR! /Users/nikersify/.npm/_logs/2018-02-22T11_45_12_806Z-debug.log Edited February 22, 2018 by Nikersify Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 (edited) I got "command not found" Edited February 22, 2018 by Mohammad Alotaibi Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 Just now, Mohammad Alotaibi said: I got "command not found" Install node.js. Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 Yea I installed noders.js . Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 2 minutes ago, Mohammad Alotaibi said: Yea I installed noders.js . Did you restart your terminal after installing node? Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 Just now, Nikersify said: Did you restart your terminal after installing node? yea. Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 3 minutes ago, Mohammad Alotaibi said: yea. Please run the following commands and paste the output here. node -v which node ls -l /usr/local/bin/npm echo $PATH Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 v8.9.4 lrwxr-xr-x 1 root admin 38 Feb 22 07:00 /usr/local/bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 16 minutes ago, Mohammad Alotaibi said: v8.9.4 lrwxr-xr-x 1 root admin 38 Feb 22 07:00 /usr/local/bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo /usr/local/bin/npm install -g alfred-polyglot Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! alfred-polyglot@1.0.0 postinstall: `alfy-init` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alfred-polyglot@1.0.0 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/account/.npm/_logs/2018-02-22T13_37_52_418Z-debug.log Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 1 minute ago, Mohammad Alotaibi said: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! alfred-polyglot@1.0.0 postinstall: `alfy-init` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alfred-polyglot@1.0.0 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/account/.npm/_logs/2018-02-22T13_37_52_418Z-debug.log cat /Users/account/.npm/_logs/2018-02-22T13_37_52_418Z-debug.log Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 a lot of stuff there, then what? Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 ...paste it either here or to https://pastebin.com. Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 (edited) https://pastebin.com/TwfPnJTT Edited February 22, 2018 by Mohammad Alotaibi adjust the link Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 12 minutes ago, Mohammad Alotaibi said: https://pastebin.com/BKRJMkm0 ...the paste is private. Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 made public. Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 Just now, Mohammad Alotaibi said: made public. nope, still private! Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 (edited) Check my post, another link. here is it https://pastebin.com/TwfPnJTT EDIT: I can't post bellow anymore, so I adjust this post, check the link https://pastebin.com/s05KGYRa Edited February 22, 2018 by Mohammad Alotaibi can't reply regularly Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 54 minutes ago, Mohammad Alotaibi said: Check my post, another link. here is it https://pastebin.com/TwfPnJTT After some digging I found out that after all you can't run the installation with sudo. The following should work fine for you Mohammad: /usr/local/bin/npm install -g alfred-polyglot Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 https://pastebin.com/s05KGYRa Link to comment
Nikersify Posted February 22, 2018 Author Share Posted February 22, 2018 1 hour ago, Mohammad Alotaibi said: https://pastebin.com/s05KGYRa sudo chown -R $(whoami) /usr/local/lib/node_modules/ /usr/local/bin/npm install -g alfred-polyglot Link to comment
Mohammad Alotaibi Posted February 22, 2018 Share Posted February 22, 2018 https://pastebin.com/Drs7XPBS 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