星期五, 7月 26, 2019

SonarQube scan failed when .ts included

In a Jenkins job which invoke SonarQube, it failed with:
ERROR:     throw err;
ERROR:     ^
ERROR: 
ERROR: Error: Cannot find module 'typescript'
How to resolve this? Before SonarQube scanning, we need:

  • npm install typescript