# After installing Node (https://nodejs.org/en) npm i -g typescript # Check tsc is installed tsc --version # Create an index.ts file echo "console.log('hello world')" > index.ts # Can't run ts files directly by themselves - have to compile as .js tsc index.ts # Or open another bash window and keep index.ts autocompiling (-w / watch) tsc -w index.ts # Can then run the .js file in the console node index.js # Try installing a module / 3rd party library npm i lodash npm i -D @types/lodash