alfy icon indicating copy to clipboard operation
alfy copied to clipboard

Running basic script takes 5s and throws error

Open kruchy8 opened this issue 3 years ago • 0 comments

Hey, I've created a new workflow with yeoman generator:

'use strict';
const alfy = require('alfy');

alfy.output([
	{
		title: 'Unicorn',
		subtitle: alfy.input
	}
]);

output

[00:16:30.984] alfy-pkc[Script Filter] Script with argv 'test' finished
[00:16:30.990] STDERR: alfy-pkc[Script Filter] /Users/pk/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.google.alfy-pkc/node_path: line 1: unexpected EOF while looking for matching `"'
/Users/pk/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.google.alfy-pkc/node_path: line 2: syntax error: unexpected end of file
[00:16:30.991] alfy-pkc[Script Filter] {
	"items": [
		{
			"title": "Unicorn",
			"subtitle": "test"
		}
	]

I'm using node 14 from nvm. Symlinked it to /usr/local/bin. Content of 'node_path' file:

PATH="/usr/local/opt/coreutils/libexec/gnubin

(missing " is not a typo)

kruchy8 avatar Oct 10 '21 22:10 kruchy8