Using the SonarScanner for NPM
To start the SonarScanner for NPM, you can either add the analysis to your build files, or use the scanner start command line (with or without npx).
Starting the scanner from the command line
sonar-scanner -Dsonar.host.url=https://myserver.com -Dsonar.token=019d1e2e04eStarting the scanner from the command line with npx
npx sonarqube-scanner -Dsonar.host.url=https://myserver.com -Dsonar.token=019d1e2e04eAdding the analysis step to your build files
Last updated
Was this helpful?

