Closed delgreco closed 4 years ago
Before filing a bug it's important that you check if you are using the latest version of the CLI or not. I'm pretty sure you're on an older deprecated version.
corona-cli
by running:npm i -g corona-cli
Peace! ✌️
I did try this, thank you... however encountered the same error after. Looks like corona-cli 3.8.6
~: sudo npm i -g corona-cli /usr/bin/corona -> /usr/lib/node_modules/corona-cli/index.js /usr/bin/corona-cli -> /usr/lib/node_modules/corona-cli/index.js /usr/lib └── corona-cli@3.8.6
/usr/lib/node_modules/corona-cli/index.js:36 (async () => { ^
SyntaxError: Unexpected token ( at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.runMain (module.js:611:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:160:9)
You are using an old version of Node. I don't support Node below 12 since those not maintained. Update you Node version so it can support features like async/await.
Red Hat EL7, node 6.17.1
/usr/lib/node_modules/corona-cli/index.js:36 (async () => { ^
SyntaxError: Unexpected token ( at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.runMain (module.js:611:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:160:9)