Hmm, not sure that got it, I ended up installing it manually.. but may have introduced a bug >sudo npm install -g ts-node typescript
>yarn run v1.21.1 $ ts-node index.ts --help
/usr/local/lib/node_modules/ts-node/src/index.ts:421 return new TSError(diagnosticText, diagnosticCodes) ^ TSError: ⨯ Unable to compile TypeScript: error TS2468: Cannot find global value 'Promise'. index.ts:1:24 - error TS2307: Cannot find module 'yargs'.
1 import * as yargs from "yargs";
~~~~~~~
index.ts:40:5 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try npm i @types/node
.
40 process.exit(1); ~~~~~~~
at createTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:421:12) at reportTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:425:19) at getOutput (/usr/local/lib/node_modules/ts-node/src/index.ts:530:36) at Object.compile (/usr/local/lib/node_modules/ts-node/src/index.ts:735:32) at Module.m._compile (/usr/local/lib/node_modules/ts-node/src/index.ts:814:43) at Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Object.require.extensions.(anonymous function) as .ts at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.