kbshl/alfred-vscode

Update npm package for Alfred 4

Opened this issue · 3 comments

Recently just updated Alfred for its version 4 release. When I tried npm install it failed - it looks like the preferences path is different with the new release

Same with you.

{ Error: Command failed: alfred-link
Error: Alfred preferences not found at location /Users/xxx/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist
    at pathExists.then.exists (/usr/local/lib/node_modules/alfred-vscode/node_modules/resolve-alfred-prefs/index.js:15:10)


    at makeError (/usr/local/lib/node_modules/alfred-vscode/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/usr/local/lib/node_modules/alfred-vscode/node_modules/execa/index.js:278:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  code: 1,
  stdout: '',
  stderr:
   'Error: Alfred preferences not found at location /Users/xxx/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n    at pathExists.then.exists (/usr/local/lib/node_modules/alfred-vscode/node_modules/resolve-alfred-prefs/index.js:15:10)\n',
  failed: true,
  signal: null,
  cmd: 'alfred-link',
  timedOut: false,
  killed: false }

This is an issue with a dependency.
sindresorhus/alfy#110

Now Alfy supports Alfred 4, alfred-link has been released a patch update to add support for Alfred 4. Just update your dependencies to get it to work. 😄