Install TypeScript


HomeBrew

  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • https://brew.sh/

Node.js

  • brew install node
  • node -v

NPM

TypeScript

/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc
/usr/local/bin/tsserver -> /usr/local/lib/node_modules/typescript/bin/tsserver
+ typescript@2.4.2

Type tsc in terminal to compile all the files in your tsconfig.json Then run node filename to have it run your code