Fail to generate a csui-extension project

Shirley Shan
Shirley Shan Member
edited June 1, 2021 in Smart View #1

Hi,

It's my first try. I've installed nodejs8,python 2, npm, yo,grunt-cli and so on based on the Readme.md file.

When I run 'yo csui-extension' to generate my project, I get some error messages.

The messages is like the following:

D:\OPENTEXT\smartview\my-extension>yo csui-extension
C:\Users\shans\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js:534
   } catch {
       ^

SyntaxError: Unexpected token {
  at createScript (vm.js:80:10)
  at Object.runInThisContext (vm.js:139:10)
  at Module._compile (module.js:617:28)
  at Object.Module._extensions..js (module.js:664:10)
  at Module.load (module.js:566:32)
  at tryModuleLoad (module.js:506:12)
  at Function.Module._load (module.js:498:3)
  at Module.require (module.js:597:17)
  at require (internal/module.js:11:18)
  at Object.<anonymous> (C:\Users\shans\AppData\Roaming\npm\node_modules\yo\lib\router.js:8:27)

D:\OPENTEXT\smartview\my-extension>


I've no idea about this error. Does anyone meet it before? How could I deal with it?

Comments