Shell with NodeJS

I’m trying to run a shell that executes a Node module. The syntax of the shell appears to be correct because if I cut and paste it from the Xojo debugger into the Terminal it will run. However my app will not give the expected result but reports

The full shell text is

/usr/local/lib/node_modules/ttf2svg/bin/ttf2svg.js /Users/malcolm/Documents/Ubuntu\\-Regular.ttf /Users/malcolm/Documents/Ubuntu\\-Regular.svg

Does anyone know what may be causing this?

Thanks you.

Remember, the shell doesn’t inherit the full user path, so some of the assumptions within the .js file may not be valid in the shell environment. You will probably need to add the real path to node instead of depending on the env settings.

Thanks Tim, I should have remembered that!

All working now, thanks.