'Error on execute ng serve : "An unhandled exception occurred: Cannot find module 'typescript'"

That's error happens to me, when i just created a new Angular project and execute ng serve. The Line of error is: An unhandled exception occurred: Cannot find module 'typescript'. After stop and read the error, i found the rason for this. Forgeted to change the location after project creation. For exemplo, on my project "crud-angular", was run cd crud-angular. Now, on folder contains all project files, run ng serve and be hapy!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source