我跟随量角器tutorial,但在更新webdriver-manager时遇到以下错误:
C:/Users/emelo/AppData/Roaming/npm/node_modules/protractor/node_modules/webdriver-manager/built/lib/webdriver.js:3
const minimist = require("minimist");
SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\emelo\AppData\Roaming\npm\node_modules\protr actor\bin\webdriver-manager:3:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
我使用的是npm v2.11.3和节点v0.12.7。
有谁知道错误是什么?
感谢您的帮助!