question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ts-node not found with yarn 2

See original GitHub issue
  • nodemon -v: 2.0.9
  • node -v: v14.17.0
  • Operating system/terminal environment: Windows 10 / powershell
  • Using Docker? What image: No
  • Command you ran: yarn run nodemon src/index.ts

Expected behaviour

Able to run ts-node

Actual behaviour

‘ts-node’ is not recognized as an internal or external command, operable program or batch file.

Steps to reproduce

Run nodemon with yarn 2 enviroment


If applicable, please append the --dump flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dongsu8142commented, Sep 24, 2021

nodemon.json { "signal": "SIGKILL", "exec": "yarn run ts-node" }

0reactions
clintontristancommented, Nov 29, 2022

didnt work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

'ts-node' is not recognized as an internal or external ...
1) Install nodemon locally --> npm i nodemon · 2) In your package. · 3) Now run npm start (this will automatically run...
Read more >
ts-node: command not found error [Solved]
Use npx to solve the error "ts-node: command not found", e.g. npx ts-node or install the package globally by running npm install -g...
Read more >
ts-node | Yarn - Package Manager
Differing behaviours between TypeScript and node.js (e.g. ES2015 modules) can result in a project that works until you decide to support a feature...
Read more >
How do I fix "sh: 1: ts-node: not found"? : r/learnprogramming
There is a PATH environment variable in the system. If the directory containing the ts-node executable is not in that path, the system...
Read more >
Troubleshooting | ts-node - TypeStrong · GitHub
Any error that is not a TSError is from node.js (e.g. SyntaxError ), and cannot be fixed by TypeScript or ts-node. These are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found