Nodejs script error
peixin opened this issue · comments
Peixin Liu commented
Source:
#!/Users/xxxx/.asdf/shims/node
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title translate
// @raycast.mode fullOutput
// Optional parameters:
// @raycast.argument1 { "type": "text", "placeholder": "text"}
// @raycast.packageName xxxx
// @raycast.needsConfirmation false
console.log("Hello World! Argument1 value: " + process.argv.slice(2)[0])
Error:
Reason: Process tried to run, but failed
Domain: scripts
Time: 09:21:25.936
Underlying:
Domain: NSPOSIXErrorDomain 8
Reason: Exec format error
Marcos Sánchez-Dehesa commented
Hey @peixin,
I just tried the code with the place where I have node
and it work for me. Therefore, there must be something wrong with your node
path. This is the code working in my machine:
#!/usr/bin/env node
// Dependency: This script requires Nodejs.
// Install Node: https://nodejs.org/en/download/
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title translate
// @raycast.mode fullOutput
// Optional parameters:
// @raycast.argument1 { "type": "text", "placeholder": "text"}
// @raycast.packageName xxxx
// @raycast.needsConfirmation false
console.log("Hello World! Argument1 value: " + process.argv.slice(2)[0])
Peixin Liu commented
Marcos Sánchez-Dehesa commented
Yeah, that is currently not supported. Sorry! I will add it up to the feature request list. Sorry for the inconveniences.