I get an error when executing sonar scanner for npm localy in vscode for a sonarqube cloud project:
sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=“my-sonar-token”
[INFO] Bootstrapper: Retrieving info from “package.json” file
[INFO] Bootstrapper: Platform: win32 x64
[INFO] Bootstrapper: Server URL: https://sonarcloud.io
[INFO] Bootstrapper: Version: 4.3.0
[INFO] Bootstrapper: JRE provisioning is supported
[ERROR] Bootstrapper: An error occurred: AxiosError: Request failed with status code 401
I tried using a project token as well as a personal token. Same error.