Q:

Typescript. Not compiling at specific machine

I have small project that is perfectly compiling on my home machine, but I'm getting hundreds of errors on another PC.
The only difference between environment I can notice is that PC that I have troubles on is under windows 8 (PC's on windows 10 and ubuntu works fine with it).
Global npm list (depth=0):
+-- npm@4.1.1
+-- typescript@2.1.5
`-- typings@2.1.0

tsc version = 1.0.3.0
tsconfig.json:
{
    "compilerOptions": {
        "module": "commonjs",
        "noImplicitAny": false
    },
    "exclude": [
        "node_modules"
    ]
}

The problems starts with /// <reference path="node_modules/@types/jquery/index.d.ts" />
That is how my output looks like:

A:

Some old versions of Visual Studio install an early version of the TypeScript SDK in the following location:
%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.0

Unfortunately, that SDK directory is added to the system PATH and causes problems if it precedes the %USERPROFILE%\Roaming\npm directory, as an old version of tsc will be run instead of the NPM-installed version.
To determine whether or not this is the problem, run the following command to see the location of tsc:
where tsc

If it's in the SDK's directory, you will need to remove that directory from the system PATH (see this answer for Windows 10 instructions) and then close and re-open any command prompts.

