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.