2016-03-22 6 views
13

私はノードv0.12.7を実行しており、npmを通して分度器をインストールしています。 は今、私はこのsimple tutorialを使用してconf.jsを実行しようとしている、とコマンドprotractor conf.jsを実行するときに、私は次のエラーを取得する:ノード0.12.x strictモードでの問題

[launcher] Process exited with error code 1 
C:\Users\ramtin\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\index.js:25 
const builder = require('./builder'); 
^^^^^ 
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\ramtin\AppData\Roaming\npm\node_modules\protractor\built\protractor.js:3:17) 
    at Module._compile (module.js:460:26) 
    at Object.Module._extensions..js (module.js:478:10) 

が原因それが生成されます依存関係の問題にノードを更新できません(私は」既にノード0.12.17を使用していたプロジェクトで作業していました)。

--harmonyフラグを角度計で使用すると機能しません。ノード0.12.7と互換性があるために特定のバージョンの分度器をインストールする必要がありますか?またはES6ES5をコンパイルするのにbabeljsを使用する必要がありますか?

答えがbabeljsの場合、分度器としてどのように使用しますか?

答えて

関連する問題