tsc is not recognized as the name of a cmdlet, function script or operable programs

Prem Murmu on 9/5/2022 4:25:38 AM

Tsc is not recognized as the name of a cmdlet, function script or operable programs error appears when running the typescript in vs code.

Solution is typescript not installed globally or execution policy does not allow running the specific script on Windows.

First: need to install typescript globally or if it is already installed please configured the typescript path in your windows system environment path.

To do this, we run below command in cmd

npm install -g typescript

Second: Set the execution policy to allowing running scripts


Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted 


Thanks hope it will work.

0 Comments on this post

Comments(0)||Login to Comments


InterServer Web Hosting and VPS
  • see more..