close

How to fix Cannot find module ‘typescript’ in Angular 4?

Hello Guys, How are you all? Hope You all Are Fine. Today we are going to learn How to fix Cannot find module ‘typescript’ in Angular 4? in javascript. So Here I am Explain to you all the possible methods here.

Without wasting your time, Let’s start This Article.

How to fix Cannot find module ‘typescript’ in Angular 4 ?

  1. How to fix Cannot find module 'typescript' in Angular 4 ?

    to fix Cannot find module 'typescript' in Angular 4 This should do the trick,
    npm install -g typescript

  2. How to fix Cannot find module 'typescript' in Angular 4 ?

    to fix Cannot find module 'typescript' in Angular 4 This should do the trick,
    npm install -g typescript

Method 1

For me just running the below command is not enough (though a valid first step):

npm install -g typescript

The following command is what you need (I think deleting node_modules works too, but the below command is quicker)

npm link typescript

Method 2

This should do the trick,

npm install -g typescript

Summery

It’s all About this article. Hope all method helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which method worked for you? Thank You.

Leave a Comment