angular / webdriver-manager

A binary manager for E2E testing
MIT License
225 stars 115 forks source link

Webdriver-manager update not working with corporate proxy in Mac machine #434

Open sruj9082 opened 4 years ago

sruj9082 commented 4 years ago

Hi all,

I am facing -bash: webdriver-manager not found" error when i am trying to run webdriver-manager update --proxy=http://userID:password@proxyIp:port command.

I have webdriver-manager and protractor installed fine in my project folder. Since, i have no admin access on Mac machine, i created node_modules folder under my user directory and downloaded webdriver-manager and protractor globally in that node_modules folder.

I have configured path to this node_modules folder in bash_profile file like .bash_profile: export NPM_CONFIG_PREFIX=~/node_modules export PATH=$NPM_CONFIG_PREFIX:$PATH

I am always getting "-bash: webdriver-manager not found" error even i tried to check the version with webdriver-manager version command. Please help me to resolve the issue. I am not able to run end2end automation tests with this error.

Packages versions:

Screen Shot 2019-12-04 at 12 32 20 PM

I have installed locally in project level and globally without any issues. But i am not able to check it's version.

Installed globally under node_modules folder created in user-directory: machineId:~ userId$ cd node_modules/ machineId:node_modules userId$ npm install -g webdriver-manager /Users/userId/node_modules/bin/webdriver-manager -> /Users/userId/node_modules/lib/node_modules/webdriver-manager/bin/webdriver-manager

Installed locally user project path:

machineId: ui-repo userId$ npm install webdriver-manager npm WARN @angular/http@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install peer dependencies yourself. npm WARN @angular/http@7.2.15 requires a peer of @angular/platform-browser@7.2.15 but none is installed. You must install peer dependencies yourself. npm WARN @angular/material@6.4.7 requires a peer of @angular/cdk@6.4.7 but none is installed. You must install peer dependencies yourself. npm WARN @angular/material@6.4.7 requires a peer of @angular/core@>=6.0.0-beta.0 <7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @angular/material@6.4.7 requires a peer of @angular/common@>=6.0.0-beta.0 <7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @storybook/angular@5.2.5 requires a peer of autoprefixer@^8.1.0 but none is installed. You must install peer dependencies yourself. npm WARN angular2-promise-buttons@3.0.1 requires a peer of @angular/core@^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN mat-progress-buttons@7.1.2 requires a peer of @angular-devkit/schematics@^0.8.2 but none is installed. You must install peer dependencies yourself. npm WARN mat-progress-buttons@7.1.2 requires a peer of @angular/cdk@^7.2.0 but none is installed. You must install peer dependencies yourself. npm WARN mat-progress-buttons@7.1.2 requires a peer of @angular/common@^7.1.4 but none is installed. You must install peer dependencies yourself. npm WARN mat-progress-buttons@7.1.2 requires a peer of @angular/core@^7.1.4 but none is installed. You must install peer dependencies yourself. npm WARN mat-progress-buttons@7.1.2 requires a peer of @angular/material@^7.2.0 but none is installed. You must install peer dependencies yourself. npm WARN mat-progress-buttons@7.1.2 requires a peer of tsickle@^0.34.0 but none is installed. You must install peer dependencies yourself. npm WARN ng-packagr@4.7.1 requires a peer of @angular/compiler@^6.0.0 || ^7.0.0 || ^7.2.0-beta.0 but none is installed. You must install peer dependencies yourself. npm WARN ng-packagr@4.7.1 requires a peer of @angular/compiler-cli@^6.0.0 || ^7.0.0 || ^7.2.0-beta.0 but none is installed. You must install peer dependencies yourself. npm WARN ng-packagr@4.7.1 requires a peer of typescript@>= 2.7 <3.3 but none is installed. You must install peer dependencies yourself. npm WARN ng-recaptcha@4.3.0 requires a peer of @angular/core@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN tsickle@0.36.0 requires a peer of typescript@~3.4.1 but none is installed. You must install peer dependencies yourself.

Please let me know the exact configuration we should follow to make protractor tests to work in Mac machine using webdriver-manager. Do we really need to install webdriver-manager globally as well to run it under corporate proxy. I am not able to attach the screenshot of console logs, i have pasted the entire console log. Any help would be much appreciated.

Thank you.

sruj9082 commented 4 years ago

Anyone has familiarity with this Issue and know a workaround please help me.