Object.values is a new feature in ES2017. It is very bleeding edge. Node.js has full support for it from version 7.0.
6.8.1 supports it, but it is considered unstable and is locked behind the --harmony flag.
You can either:
- Upgrade to the latest Node.js LTS and use
--harmony - Upgrade to the latest Node.js Current
- Use a polyfill