Please set SONAR_TOKEN , before running it locally. I have set environment variable named SONAR_TOKEN in my local system (Windows OS)
If you are running in any environment make sure that environment have variable named SONAR_TOKEN. Now one can generate its OWN sonar token if sonar_server is up. Just go to profile --> setting and generate one token , make a lifetime token if running locally, or don't want token to expire ever.