Sto provando ad avviare il goniometro sul mio computer di sviluppo Windows locale. Nel tentativo di farlo, sto cercando di avviarlo dalla riga di comando utilizzando il seguente comando:Impossibile utilizzare il webdriver-manager Goniometro
C:\myProject\node_modules\grunt-protractor-runner\node_modules\protractor\bin>webdriver-manager start
Quando questo comando viene eseguito, ottengo un errore che dice:
'webdriver-manager' is not recognized as an internal or external command,
operable program or batch file.
Ero sicuro che questo fosse corretto. Sto installando il goniometro tramite NPM. Il mio file package.json assomiglia a questo:
{
"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"
}
Cosa sto facendo male? Perché non riesco a far funzionare il goniometro? Grazie!
Se si installa goniometro correttamente, 'WebDriver-manager'is un comando eseguibile. Vedi [risposta di Rassel] (https://stackoverflow.com/a/29378410/2197555) – gm2008
'./node_modules/.bin/webdriver-manager start' dovrebbe funzionare –