ultra-runner: npx ts-node myscript.ts fails with ENOENT
I have a script in my package.json like "doit" : "npx ts-node myscript.ts".
ts-node@8.6.2 is in my devDependencies and installed.
ts-node.cmd is in node_modules/.bin/ts-node.cmd (as well as bash and ps versions)
Running the package script with npm run doit works fine.
Running npx ultra doit fails with
error error Command ts-node failed with Error: spawn ...\node_modules\.bin\ts-node ENOENT. Is the command on your path?
Iām on Windows 10.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (10 by maintainers)
Commits related to this issue
- fix: š always extend PATH with local node_modules/.bin directory for commands that execute child processes like nyc #35 — committed to folke/ultra-runner by folke 4 years ago
Now it works š Thanks a lot
Works like a charm! Thank you so much for the super quick fixes.
Kind regards