TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Installing typescript locally should be the preferred way
I know it's easy to start with npm install -g typescript but it gets hairy when multiple developers are doing that on different versions of typescript.
This SO post clarifies how to install typescript locally in a node project:
http://stackoverflow.com/a/41446584/177498
Perhaps the official documentation should mention this option? I would contribute a PR but I can't find where https://www.typescriptlang.org/docs/tutorial.html is in this repo.
I would just add that installing tsc locally or "per project" doesn't force you to add any npm script, thanks to npx: https://stackoverflow.com/a/54053816/1749787