ts-node command not found

JavaScript
npm install -g ts-nodenpx ts-node src/foo.ts

Source

Also in JavaScript: