WeiChiaChang / stacks-cli

📊 Analyze website stack from the terminal 💻
MIT License
1.99k stars 71 forks source link

TypeError: Object.values is not a function #1

Open alexkohler opened 6 years ago

alexkohler commented 6 years ago

Gave this a try on Ubuntu 14.04, npm 5.4.22, node 6.11.3 and running into the following:

? Which website stack do you wanna browse ? (e.g. https://github.com) https://github.com
TypeError: Object.values is not a function
    at wappalyzer.analyze.then.json (/usr/lib/node_modules/stacks-cli/bin/cli.js:155:50)
WeiChiaChang commented 6 years ago

Hello @alexkohler, thanks for your time and patience first, and I found that it seems the Node.js version issue.

Objects.values finally got full support until version 7.0, so I'm sorry that's my fault.

I test on my local parallel virtual machine, Ubuntu 16.04, npm 5.5.1, node 8.9.1, here's the testing screenshot:

testing on ubuntu

And I think one of the solution is upgrade your node.js version to 7.0 at least to get full support of some ES2017 new feature like Object.values, further details can be found at here. Thanks you again, and I'll also try to figure out the other way without upgrading node version solution.

alexkohler commented 6 years ago

Thanks @WeiChiaChang! That did the trick. I think just noting the minimum versions in the README would be plenty.