Categories
Angular Answers

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

Spread the love

Sometimes, we want to fix Cannot find module ‘typescript’ in Angular.

In this article, we’ll look at how to fix Cannot find module ‘typescript’ in Angular.

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

To fix Cannot find module ‘typescript’ in Angular, we run a few npm commands.

We run

npm install -g typescript

to install the typescript module.

And then we run

npm link typescript

to make the typescript module available to the Angular project.

Conclusion

To fix Cannot find module ‘typescript’ in Angular, we run a few npm commands.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *