protofire/solhint

Solhint npm installed executable won't run - throws error "Unexpected Token"

CadeMichael opened this issue · 1 comments

I was able to successfully install solhint but am getting the following error when trying to run the executable

/home/cade/.npm-global/lib/node_modules/solhint/node_modules/cosmiconfig/dist/index.js:78
if (metaConfig.config?.loaders) {
^

SyntaxError: Unexpected token '.'

I'm not sure if this is something with solhint or my computer, I'm currently using linux mint and have node / npm installed.

It's an issue with older node provided by mint. The optional operator isn't supported on the linux mint node version.