Lesson 5, "ts-node" command not working #1828
alkali333
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Do not worry, it was fine to follow that. A brief overview would be the answer elaborating to not install it globally as it would lead to a dependency "collision" if another one incorporates a different version of ts-node.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After installing ts-node, trying to run in the console gave me a "command not found" error. I found a solution online that suggested using the npx command as follows
This worked. I got it from the second answer given here:
https://stackoverflow.com/questions/44764004/ts-node-is-not-recognized-as-an-internal-or-external-command-operable-program
Can somebody please let me know if that was the right thing to do and, if so, why was it necessary? I don't really understand the stackoverflow answer.
Beta Was this translation helpful? Give feedback.
All reactions