Skip to content

Instantly share code, notes, and snippets.

@natterstefan
Last active August 25, 2020 16:25
Show Gist options
  • Save natterstefan/5d3d7681abfb992648c65776dcd5c864 to your computer and use it in GitHub Desktop.
Save natterstefan/5d3d7681abfb992648c65776dcd5c864 to your computer and use it in GitHub Desktop.
Alfred 4 | Resolve "Error: Command failed: alfred-link"

Resolve "Error: Command failed: alfred-link"

Specs

  • Alfred 4 with Powerpack
  • macOS 10.15.6
  • node 12.16.0
  • custom preferences folder (e.g. ~/Dropbox)

Expectation

When executing the following command with node 12+ and Alfred 4, I expect it to work and install the workflow.

npm install --global alfred-goodreads-workflow

Problem

But I got the following error when installing an Alfred workflow with node/npm.

Error: Command failed: alfred-link
Error: Alfred preferences not found at location /Users/someone/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist

Solution

ln -s ~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist ~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment