Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SyntaxError: Unexpected Token running Yeoman

Steve Muench-OracleNov 17 2016 — edited Nov 18 2016

I have the latest npm 2.11.3 installed with no proxy configured and I am temporarily off the Oracle VPN.

I have followed the two prerequisite steps to run:

npm -g install yo bower grunt-cli

npm -g install generator-oraclejet

however, when I run the yeoman command in the Getting Started page, I get this syntax error:

yo oraclejet MyNavDrawerExample --template=navdrawer

C:\Users\smuench\jet>yo oraclejet MyNavDrawer --template=navdrawer

C:\Users\smuench\AppData\Roaming\npm\node_modules\generator-oraclejet\generators\app\index.js:31

      .then(() => {

             ^

SyntaxError: Unexpected token )

    at exports.runInThisContext (vm.js:73:16)

    at Module._compile (module.js:443:25)

    at Object.Module._extensions..js (module.js:478:10)

    at Module.load (module.js:355:32)

    at Function.Module._load (module.js:310:12)

    at Module.require (module.js:365:17)

    at require (module.js:384:17)

    at Object.defineProperty.get [as oraclejet:app] (C:\Users\smuench\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\store.js:40:23)

    at Store.get (C:\Users\smuench\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\store.js:64:35)

    at Environment.get (C:\Users\smuench\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js:262:16)

This post has been answered by anschwar-Oracle on Nov 17 2016
Jump to Answer
Comments
Post Details
Added on Nov 17 2016
2 comments
1,097 views