Shell script shebang for unknown path
/usr/bin/env
is specifically thought of for cross-platform solutions.
env executes utility after modifying the environment as specified onthe command line. The option name=value specifies an environmentalvariable, name, with a value of value. The option `-i' causes envto completely ignore the environment it inherits.If no utility is specified, env prints out the names and values ofthe variables in the environment, with one name=value pair per line.
so something in lines of:
#!/usr/bin/env node
Will be cross-platform and "the right way to go".