When trying to create a new rails app, things fail with this error:
Errno::ENOENT: No such file or directory - npx
The docs say this is needed, but don’t give information about how or where to get it. It is apparently not even supported on Unix:
$ find /usr/ports -type d -name "*npx*"
$
The code also doesn’t give much clue: that npx is called unconditionally and without actually using it.
I got to this when I tried to create with esbuild. Before that I tried to use the default importmaps, but that gives an error in the browser that it doesn’t understand mimetype
application/javascript+ruby. Apparently importmaps expects the browser to compute the erb code in my JS files.