SyntaxError:意外令牌。异步/等待节点8

Анд*_*зюк 5 javascript node.js

试图async/await与快递一起使用。但是出现错误

const getData = async () => {
                      ^
SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
Run Code Online (Sandbox Code Playgroud)

节点版本-8.5.0

部分代码

const getData = async () => {
  return 'all done';
}
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?谢谢

Gir*_*rpa -2

这个问题的解决方案似乎是重新安装 Node.js。