在安装cardov的第一步中设置离子框架时出现以下错误,这是我在运行命令时遇到的以下错误 nodejs中的“$ sudo npm install -g cordova”
SyntaxError: Unexpected identifier
at Object.exports.createScript (vm.js:24:10)
at REPLServer.defaultEval (repl.js:236:25)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:441:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
at REPLServer.Interface._onLine (readline.js:219:10)
at REPLServer.Interface._line (readline.js:561:8)
at REPLServer.Interface._ttyWrite (readline.js:838:14)
请帮我解决这个错误。