[Troubleshooting] Cannot find module 'typescript'

Last update March 15, 2022 at 07:16 am

This type of errors appear in node js based projects like angular and typescript.

When we embark on the projects ofWeb application, some errors are difficult to resolve. Not because we can't find a solution on the web, but quite simply because it is the result of several completely different solutions one after the other.


[bctt tweet=”Troubleshooting – Cannot find module 'typescript'” username=”tedidevblog”]



When implementing a typescript project with unit tests, we encountered a problem during compilation. The error displays Cannot find module 'typescript'. The solution we found to solve our problem is to run the following script in the terminal.

npm link typescript

If you have correctly installed typescript and its dependencies, this simple command should be sufficient to resolve the problem. The cause would obviously be that nodejs cannot find the typescript module to operate.


Last update March 15, 2022 at 07:16 am





That's it that's all. You may be interested in Unusual: He managed to throw Doom in a pregnancy test et Sleep: 7 reasons why sleeping can make your life easier.


SOUNDPEATS TrueCapsule True Wireless Earphones



  • [Decent HD sound quality] - The technology Bluetooth 5.0 and Qualcomm 3020 chipset provide faster transmission speed and lower power consumption, Qualcomm aptX codec and 6mm bio-diaphragm driver ensure more stable connection without signal loss or music loss.


  • [4 mics with noise reduction] - Each earpiece has two microphones, equipped with cVc 8.0 noise reduction technology, background noise can be effectively blocked, and you can easily make crystal clear phone calls without interference even in a noisy environment.


  • [40 hours of playtime] - Bluetooth earphones provide nearly 8 hours of playtime per single charge, and the portable charging case can extend it to 40 hours, full use without worrying about power shortage. The compatible USB-C charger makes charging more convenient when you go out.


  • [Sensitive Touch Control] - Installed with high sensitivity touch sensor, you can control your device by lightly pressing the earphone, such as play / pause, volume + / _, play next / previous, answer / hang up calls, you can also activate voice assistant by three earphones.


  • [In-Ear Sense] - Light-sensing in-ear sensing technology allows you to play or pause once the headphones have been put on or taken off, no need to control the device or touch the earphone, very practical.


See the offer in detail