'When trying to run the yeoman generator for generating an office add in I get 'SyntaxError: Unexpected token a in JSON at position 102'

I am trying to use the yeoman installer following this example: https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator.

I have the latest LTS version of node, installed the latest yeoman. Everything seems fine. But when I try to run yo office I get:

Error office 

SyntaxError: Unexpected token a in JSON at position 102

What could be the problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source