Wrap SonarQube Scanner as a node module.
You can install node-sonar-scanner as a development dependency and add it as a script property in your package.json.
npm i sonar-scanner --save-dev
{
"scripts": {
"sonar-scanner": "node_modules/sonar-scanner/bin/sonar-scanner"
}
}
npm run sonar-scanner