Dominique Posted May 11, 2018 Share Posted May 11, 2018 Hi all, I'm trying to run a node.js script with Alfred, using this workaround: http://remy.bach.me.uk/blog/2014/03/writing-alfred-workflows-in-node/ It seems to work to get scripts to run without modules, but when I try to use the npm 'fast-csv' module, running the Alfred workflow with my script gives me the error "Cannot find the module 'fast-csv'". I've installed 'fast-csv' globally, so I'm not sure what else to try. (The script runs correctly when using the terminal.) Any ideas? Thanks Link to comment
vitor Posted May 11, 2018 Share Posted May 11, 2018 Welcome to the forums. We can’t properly help you without access to your Workflow. Debugging can already be hard with access to the code, and you’re asking us to guess yours from a description. There are multiple places where your code or Workflow setup may be going wrong. Without looking at it we’re shooting in the dark, which is a waste of time for everyone involved (including you). Read the Reporting Problems with Workflows topic, as it gives a nice overview on how to build an effective report. Link to comment
deanishe Posted May 11, 2018 Share Posted May 11, 2018 To add to what Vítor said, you’re having a problem with some non-standard software: Node. That is to say, this isn’t purely an Alfred question. It’s quite possibly an issue with your own system that we can’t possibly replicate. That’s the risk in using workflows written in things like Node. If you have a choice, it’s always safer to go with a workflow that’s “native” to macOS rather than one that requires non-standard platforms like Node. Indeed, Node is particularly bad, as Node devs often have a brain-damaged approach to writing workflows. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now