我已经通过此链接在我的Ubuntu 16.0.4上安装了Heroku。 https://devcenter.heroku.com/articles/heroku-cli#debian-ubuntu
但是当我从终端运行heroku --version时,我得到了这个错误。
WARNING
WARNING Node version must be >=7.10.0 to use the Heroku CLI
WARNING
/home/nikhil/.nvm/versions/node/v6.11.0/lib/node_modules/heroku-
cli/node_modules/cli-engine/lib/cli.js:73
async run() {
^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous>
(/home/nikhil/.nvm/versions/node/v6.11.0/lib/node_modules/heroku-
cli/bin/run.js:10:34)
有人能帮助我吗?