To fix ‘ts-node’ is not recognized as an internal or external command, operable program or batch file with JavaScript, we install the ts-node
package.
To install it, we run
npm install -g ts-node
to install the ts-node
package as a global package.