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

Most upvoted comments

Now it works šŸ‘ Thanks a lot

Works like a charm! Thank you so much for the super quick fixes.

Kind regards