简体   繁体   中英

Protractor doesn't start tried all the solutions given on internet

Below are my env details:
OS : win 10 64 bit
npm version - 5.3.0
node version - v8.3.0
webdriver-manager version - 
chromedriver: 103.0.5060.53, 104.0.5112.29 (latest)
geckodriver: 0.31.0 (latest)
selenium: 4.0.0-alpha-1 (latest)

chrome browser version - 103.0.5060.114

// Getting below error whenever I try to run tests, I tried with different node and webdriver-manager versions, nothing is working, I tried from scratch,

n\AppData\Roaming\npm\node_modules\protractor\example>node node_modules/protractor/bin/webdriver-manager update
module.js:491
    throw err;
    ^

Error: Cannot find module 'C:\Users\test\AppData\Roaming\npm\node_modules\protractor\example\node_modules\protractor\bin\webdriver-manager'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Function.Module.runMain (module.js:609:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:578:3

your example folder doesn't have node_modules. try this instead

node ./../node_modules/protractor/bin/webdriver-manager update

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM