Forum - Failed to initialize the CloudApp with SyntaxError: Unexpected token

  • This topic has 3 replies, 3 voices, and was last updated 2 weeks, 1 day ago by Josh Weisman.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #67182
    Tsinghua University 86THU_INST
    Participant

    lingj@CH-LINJI-7290 MINGW64 ~/Workspace/exl_cloudapp
    $ eca init
    C:\Users\lingj\AppData\Roaming\npm\node_modules\@exlibris\exl-cloudapp-cli\node_modules\fs-extra\lib\mkdirs\make-dir.js:86
    } catch {
    ^

    SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\lingj\AppData\Roaming\npm\node_modules\@exlibris\exl-cloudapp-cli\node_modules\fs-extra\lib\mkdirs\index.js:3:44)

    #67183
    Ling Jiang
    Participant

    I believe there is something wrong with my installed Cloud Apps CLI.
    Because the same error happens when I try to initialize the cloudapp-tutorials app:
    `
    lingj@CH-LINJI-7290 MINGW64 ~/Workspace
    $ git clone https://github.com/ExLibrisGroup/cloudapp-tutorials.git
    Cloning into ‘cloudapp-tutorials’…
    remote: Enumerating objects: 399, done.
    remote: Counting objects: 100% (399/399), done.
    remote: Compressing objects: 100% (241/241), done.
    Receiremote: Total 399 (delta 228), reused 312 (delta 149), pack-reused 0
    Receiving objects: 100% (399/399), 295.92 KiB | 359.00 KiB/s, done.
    Resolving deltas: 100% (228/228), done.

    lingj@CH-LINJI-7290 MINGW64 ~/Workspace
    $ cd cloudapp-tutorials/

    lingj@CH-LINJI-7290 MINGW64 ~/Workspace/cloudapp-tutorials (tutorials)
    $ eca init
    C:\Users\lingj\AppData\Roaming\npm\node_modules\@exlibris\exl-cloudapp-cli\node_modules\fs-extra\lib\mkdirs\make-dir.js:86
    } catch {
    ^

    SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\lingj\AppData\Roaming\npm\node_modules\@exlibris\exl-cloudapp-cli\node_modules\fs-extra\lib\mkdirs\index.js:3:44)
    `

    #67184
    Ling Jiang
    Participant

    Sorry, guys. This is a compatibility issue, which was resolved after upgrading the Node.js
    From
    $ node –version
    v8.11.1
    $ npm –version
    5.6.0
    To
    $ node –version
    v12.18.3
    $ npm –version
    6.14.6

    #67189
    Josh Weisman
    Keymaster

    Glad the issue was resolved.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.