I just cloned an angular 6 project from bitbucket, did npm install
and all the related tasks, it seems to be working well, but when I try to generate a new comp
I Just changed the encoding to UTF-8 of Angular-CLI.JSON using notepad++ and issue resolved.
Probably a problem in your angular.json somewhere, or maybe an encoding issue with the file or else a bug in Angular CLI. This is a reasonable place to start to investigate (one of the many Angular CLI github issues related to unexpected token errors)...https://github.com/angular/angular-cli/issues/10880
Check if you accidentally made a comment. Open up angular.json and look for '/' on the line or 'position' specified. JSON does not support comments.
I also had same problem, when I trying to create component and after googling, I found https://jsonlint.com/ and which validate your JSON files and it points to the exact line and error.
For more information, please refer to following thread: https://github.com/angular/angular-cli/issues/10880
Cheers!