我想在我的本地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'甚至应该在安装完毕后,我得到了同样的错误工作 –