I've switched to using @types (as one should in Typescript 2.0). So I ran
npm i -S typescript @types/typescript
node_modules/@types/typescript/index.d.ts(1306,9): error TS2411: Property
'allowNonTsExtensions' of type 'boolean | undefined' is not assignable to
string index type 'string | number | boolean'.
1) Don't install
typescript module contains everything it needs. Type definition files are already included in
2) You should definitely have
typescript installed globally, but if you want to share your project (e.g. on GitHub), you should install it also locally. People won't have problems about missing dependancies or version mismatches.