Kumar-Saksham / CSMM-CLI

A simple CLI based mod manager for Cities: Skylines.
MIT License
7 stars 4 forks source link

SyntaxError: unexpected token #1

Closed d4vzz closed 4 years ago

d4vzz commented 4 years ago

hey, i'm trying config/install items but every command result in this error (changing numbers or diretory, depending of command):

$ csmm config
   /usr/local/lib/node_modules/csmm-cli/src/commands/config.js:70
      } catch {
                  ^
   SyntaxError: Unexpected token {
   at fetch (/usr/local/lib/node_modules/csmm-cli/node_modules/@oclif/config/lib/plugin.js:170:21)

I used the gnome terminal, is this the problem? it's like finding errors (}) in the scripts, but I don't understand js, so...

Kumar-Saksham commented 4 years ago

hmm, that seems like your node version doesn't support optional catch binding (using catch blocks without arguments) it should work for node version 10.3 and above. You can try updating your nodejs to something >=10.3.

d4vzz commented 4 years ago

after some problems with repositories, I did it! thanks, the update allowed :)