Closed W-quan closed 5 years ago
Are you using Alfred 3? If so, where are your preferences stored?
It is exist
This is very weird. @sindresorhus Any idea what could cause this?
Same problem here... Any new progress.
same error here
same error here
Yep I have the same error
same error!!!!!
same error here
I have notice the "\n". Is it lead to?
Same problem as described in this issue, but I have Alfred Preferences plist by the following path:
~ $ find . -iname "*Alfred-Preferences*" -type f
./Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist
Is there any workaround? I'm using Alfred4
Workaround for me until this issue isn't resolved:
~ $ git --work-tree=$(npm root -g)/alfred-fkill clone https://github.com/SamVerschueren/alfred-fkill.git ~/alfred-workflows-git/alfred-fkill
~ $ cd $(npm root -g)/alfred-fkill
alfred-fkill $ npm install alfy fkill pid-from-port ps-list
It's an ugly workaround, but it's because I need this workflow working. =) What's going on in commands above:
~/alfred-workflows-git/alfred-fkill
path, but all content will be stored in alfred-fkill
directory in global modules path by --work-tree=$(npm root -g)/alfred-fkill
option.alfy
, fkill
, pid-from-port
and ps-list
. As I don't use -g
option, all dependencies will be installed in current folder (which is alfred-fkill directory in global npm modules path)It should be resolved. We made changes to the underlying alfy
package. Let me know if it isn't.
alfred-fkill@0.4.0 postinstall /usr/local/lib/node_modules/alfred-fkill
{ Error: Command failed: alfred-link Error: Alfred preferences not found at location /Users/wzq/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist at pathExists.then.exists (/usr/local/lib/node_modules/alfred-fkill/node_modules/resolve-alfred-prefs/index.js:15:10) at
code: 1, killed: false, stdout: '', stderr: 'Error: Alfred preferences not found at location /Users/wzq/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n at pathExists.then.exists (/usr/local/lib/node_modules/alfred-fkill/node_modules/resolve-alfred-prefs/index.js:15:10)\n at\n',
failed: true,
signal: null,
cmd: 'alfred-link',
timedOut: false }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! alfred-fkill@0.4.0 postinstall:
alfy-init
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alfred-fkill@0.4.0 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.