Version mismatch! global tsc (2.1.5) != VS Code's language service (2.2.2)

I recently was working on an angular 2 project and came across the below error when I opened the project in VS code:

Version mismatch! global tsc (2.1.5) != VS Code's language service (2.2.2)

I did the below steps to resolve the issue:

Step 1 : In VS Code,  Open 'Integrated Terminal' ( View>Integrated Terminal)

Step 2: Type in below command -
 
>npm install -g typescript@2.2.2

Step3: Close and reopen VsCode and error will disappear.

Comments

Popular posts from this blog

Error when Installing SQL Server 2008 R2 Management Studio

Windows 7 and GoToMyPC - Configure the Domain Group Policy to allow GoToMyPC to send Ctrl-Alt-Del

Technical Team Lead Interview Questions