我想在我的本地Windows開發機器上啓動量角器。在試圖這樣做,我嘗試使用下面的命令在命令行啓動它:無法使用量角器網絡驅動器管理器
C:\myProject\node_modules\grunt-protractor-runner\node_modules\protractor\bin>webdriver-manager start
當運行這個命令,我得到一個錯誤,指出:
'webdriver-manager' is not recognized as an internal or external command,
operable program or batch file.
但我確信這是正確的。我正在通過NPM安裝量角器。我的package.json文件如下所示:
{
"name": "MyProject",
"version": "0.0.1",
"description": "Just the description",
"repository": "N/A",
"readme":"N/A",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"devDependencies": {
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "0.4.0",
"grunt-contrib-connect": "0.7.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.1",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-contrib-jshint": "0.9.2",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-watch": "0.5.x",
"grunt-protractor-runner": "0.2.4",
"grunt-start-webdriver":"0.0.2",
"phantomjs": "1.9.7-3",
"selenium-webdriver":"2.41.0",
"load-grunt-tasks": "0.2.x",
},
"license": "none"
}
我在做什麼錯?爲什麼我不能使用量角器來運行?謝謝!
如果安裝量角器正確,'的webdriver-manager'is一個可運行的命令。參見[Rassel的答案](https://stackoverflow.com/a/29378410/2197555) – gm2008
'./node_modules/.bin/webdriver-manager start'甚至應該在安裝完畢後,我得到了同樣的錯誤工作 –