Error: Cannot find module 'typescript'

Hi RyanK,
I am facing same error in my jenkins build while sonarscanner analyzing .ts file. I don’t know what exactly need to be done. I am familiar in sonar; but not in node.js. My very first question is: Is sonar using node.js to analyze .ts files? I tried installing it globally as > npm install -g typescript; but didn’t work.

I tried setting up our NODE_PATH by using “-Dsonar.typescript.node=” variable; but still facing the above error.

It would be great help if can guide me that how did you install type script on per build configuration? Thanks in Advance.