sindresorhus / alfy

Create Alfred workflows with ease
MIT License
2.63k stars 104 forks source link

Getting alfy-init: command not found #130

Closed urre closed 2 years ago

urre commented 3 years ago

I was about to make an update to my Alfredinary, but now getting alfy-init: command not found. I have "postinstall": "alfy-init", in my package.json.

Using Node.js v14.8.0, Alfred 4.3.2 and these are my dependencies to the Alfred workflow

  "dependencies": {
    "alfy": "^0.10.0",
    "cloudinary": "^1.25.0",
    "dotenv": "^8.2.0"
  }
urre commented 3 years ago

Running this manually seems to work: ./node_modules/alfy/init.js

sindresorhus commented 3 years ago

Sounds like an npm issue. https://github.com/sindresorhus/alfy/blob/5962de4d4a356c55cd11727369613a04a96dbce7/package.json#L9 is correctly defined.

urre commented 3 years ago

Yea I thought everything looked good. Wonder why I'm getting "command note found" on this.

LitoMore commented 3 years ago

@urre What command did you execute to cause this error?