TypeScript-Handbook icon indicating copy to clipboard operation
TypeScript-Handbook copied to clipboard

Installing typescript locally should be the preferred way

Open ubershmekel opened this issue 8 years ago • 1 comments

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.

ubershmekel avatar Apr 28 '17 22:04 ubershmekel

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

neatshell avatar Jul 16 '20 15:07 neatshell