在Windows 8.1中使用npm install -g heroku-cli安装heroku后,我在heroku上出现此错误--version
C:\Users\Lenovo\AppData\Roaming\npm\node_modules\heroku-cli\node_modules\cli-eng
ine\lib\cli.js:70
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> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\hero
ku-cli\bin\run.js:2:34)
答案 0 :(得分:0)
Heroku CLI要求节点&gt; = 7.10.0或更高
答案 1 :(得分:0)