SamVerschueren / alfred-fkill

Alfred 3 workflow to fabulously search and kill processes
MIT License
475 stars 13 forks source link

Error: Alfred preferences not found at location /Users/xxx/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist #10

Closed W-quan closed 5 years ago

W-quan commented 6 years ago

alfred-fkill@0.4.0 postinstall /usr/local/lib/node_modules/alfred-fkill

alfy-init

{ 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

at Promise.all.then.arr (/usr/local/lib/node_modules/alfred-fkill/node_modules/execa/index.js:236:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

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.

SamVerschueren commented 6 years ago

Are you using Alfred 3? If so, where are your preferences stored?

W-quan commented 6 years ago

1524626566178

It is exist

SamVerschueren commented 6 years ago

This is very weird. @sindresorhus Any idea what could cause this?

ARISTODE commented 6 years ago

Same problem here... Any new progress.

chieft8 commented 6 years ago

same error here

Yuzeyang commented 5 years ago

same error here

methodik commented 5 years ago

Yep I have the same error

image
suboyang commented 5 years ago

image

same error!!!!!

AndrejTetak commented 5 years ago

same error here

W-quan commented 5 years ago

I have notice the "\n". Is it lead to?

slebedev commented 5 years ago

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

slebedev commented 5 years ago

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:

  1. Clone repository with alfred-fkill to ~/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.
  2. Than we need open directory with fetched contents
  3. And install all dependencies this module uses: 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)
SamVerschueren commented 5 years ago

It should be resolved. We made changes to the underlying alfy package. Let me know if it isn't.