Hi there,
I was using your workflow on my old MacBook, and since it was working perfectly I wanted to install it on my new MBPro. I remember that on my first installation, I got some issues and I just have to stupidly follow the commands you advised to Mohammad in this topic.
I first tried the command itself given in the installation process (workflow was already synced through Dropbox). Since it was not working, I deleted the workflow and downloaded it again from Github, then I installed it and try again the first command given in the installation process.
Then I got several errors, so I remember I went too fast... I installed node.js and I also used the "csrutil disable" command to allow the access to some folders (some errors were showing that I didn't have access to edit usr folder), then I followed again what you guys explained to Mohammad to activate the workflow.
Is it related to the fact that I use a sync folder (Dropox) ? Did I fucked it up by using commands I don't understand at all ? ?
Note : between each steps, I tried the workflow and it never worked when it came to translate (display a red ! with ERROR in Alfred)
The attached file is the error I got while using the workflow, and following is the full error log I got with the Terminal :
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli 'alfred-polyglot' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose npm-session b9c662e2b42691cf
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 timing stage:rollbackFailedOptional Completed in 11ms
8 timing stage:runTopLevelLifecycles Completed in 14ms
9 verbose stack Error: Invalid tag name "alfred-polyglot": Tags may not have any characters that encodeURIComponent encodes.
9 verbose stack at invalidTagName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:87:15)
9 verbose stack at fromRegistry (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:290:13)
9 verbose stack at resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:77:12)
9 verbose stack at npa (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:48:10)
9 verbose stack at /usr/local/lib/node_modules/npm/lib/install/deps.js:209:14
9 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
9 verbose stack at Array.forEach (<anonymous>)
9 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
9 verbose stack at Array.forEach (<anonymous>)
9 verbose stack at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
9 verbose stack at exports.getAllMetadata (/usr/local/lib/node_modules/npm/lib/install/deps.js:206:3)
9 verbose stack at Installer.loadArgMetadata (/usr/local/lib/node_modules/npm/lib/install.js:360:3)
9 verbose stack at Installer.readGlobalPackageData (/usr/local/lib/node_modules/npm/lib/install.js:658:8)
9 verbose stack at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
9 verbose stack at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
9 verbose stack at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
10 verbose cwd /Users/antoine
11 verbose Darwin 18.0.0
12 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "alfred-polyglot"
13 verbose node v8.12.0
14 verbose npm v6.4.1
15 error code EINVALIDTAGNAME
16 error Invalid tag name "alfred-polyglot": Tags may not have any characters that encodeURIComponent encodes.
17 verbose exit [ 1, true ]
I miss that workflow, please help !