Tuesday, February 12, 2019

How to fix : Error: Cannot find module 'typescript' - Sonar

Possible solutions:

https://nodejs.org/en/download/ install Node JS.

1st :
Go to the jenkins workspace and type "npm install  typescript"
Then try to run the sonar process.

If still you get the error.
try
Go to the jenkins workspace and type "npm install -g  typescript"