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.

/bin/sh: ts-node: command not found

See original GitHub issue

I have already install ts-node.

I did not do any setting up.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

21reactions
formulahendrycommented, Aug 18, 2017

You need either put ts-node in your PATH environment variable, or set the path of ts-node in File->Preference->Settings:

"code-runner.executorMap": {
    "typescript": "node_modules/.bin/ts-node"
}
12reactions
mrdulincommented, Feb 20, 2019

My solution is:

 "code-runner.executorMap": {
    "typescript": "node -r ts-node/register",
    "javascript": "node"
  }

I think it’s better than the solution @formulahendry provided. You don’t need care about the path like this: ${whatever PATH}/node_modules/.bin/ts-node. Because the PATH often changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'ts-node' is not recognized as an internal or external command ...
I think the issue is with the newer versions of npm on Windows. For more info: github.com/remy/nodemon/issues/1951. Installing it globally fixed ...
Read more >
How do I fix "sh: 1: ts-node: not found"? - Reddit
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 >
ts-node - npm
ts ) and TypeScript resolves dependencies based on imports and references. Occasionally, this optimization leads to missing types. Fortunately, ...
Read more >
How to fix ts-node is not recognized as an internal or external ...
ts - node not recognizedts-node is not recognized as an internal or external commandts-node is not available in path pm2ts-node command not ...
Read more >
ts-node command not found - Code Examples & Solutions For ...
ts -node command not found. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On November 4, 2020 Popularity 10/10...
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