mozilla / observatory-cli

Mozilla Public License 2.0
189 stars 24 forks source link

/usr/local/lib/node_modules/observatory-cli/index.js:130 #31

Open blade1989 opened 6 years ago

blade1989 commented 6 years ago

On Ubuntu 16.04.3 LTS, I installed observatory, like so: npm install -g observatory-cli.

When executing the CLI, I get the following:

/usr/local/lib/node_modules/observatory-cli/index.js:130
  promiseScan (site, options, method="post") {
                                    ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
root@eurobytes:~# observatory --help
/usr/local/lib/node_modules/observatory-cli/index.js:130
  promiseScan (site, options, method="post") {
                                    ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

All the server updates have been installed.

nicox commented 6 years ago

Are there any news about this issue? do you know a workaround?

lembergerth commented 6 years ago

Same problem here in the official docker image of Ubuntu 16.04. Happy about any suggestions.