-
Notifications
You must be signed in to change notification settings - Fork 4.6k
npm run protractor
doesn't work on Mac OS X Yosemite machine
#230
Comments
I got it working by changing package.json Set devDependencies.protractor to be "*", removed node_modules, ran |
I can confirm that the solution from @jpaljasma works. |
I tried @jpaljasma 's approach but it didn't work for me. Any idea?
npm ERR! Darwin 14.1.0 npm ERR! Please include the following file with any support request: |
@jpaljasma Thanks for your help, but it doesn't work here either. |
Worked for me, thanks! |
@jpaljasma How do I remove all the node_modules,? Should I just delete the node_modules folder or is there a command? |
I just deleted the node_modules folder. It will be regenerated on npm install. |
Thanks. It works fine when all the tests pass, but for a failing tests it shows which tests are failing and an error code 1 subsequently exits with the same error as for @mannyfu above. |
I had the same problem running linux (fedora 21) and the solution from jpaljasma worked for me as well. |
@jpaljasma’s solution works for me on Mac OS X 10.9.5. |
works for me |
@jpaljasma’s solution works for me on Mac OS X 10.10.2 as well, thanks a lot! |
same issue, steps from @jpaljasma worked great - thanks! |
On macbook pro Yosemite, I solved the same error by downloading : https://sites.google.com/a/chromium.org/chromedriver/downloads manualy and copy in the good repertory. This error is due to a damage ZIP file. I hope you'll resolve your problem. |
I just followed @Tintin34 suggestion and it worked for me, also on a mbp yosemite. |
@tintin3's solution worked for me. I'm on Yosemite 10.10.2. The existing chromedriver zip file would not extract, but the 2.14 mac zip downloaded from http://chromedriver.storage.googleapis.com/index.html?path=2.14/ unzipped fine and protractor ran alright. |
@Tintin34 solution also worked for me. I ran
|
@Tintin34 solution also works for me on Mac OS X 10.10.3 - thanks! |
thanks @jpaljasma! worked like a charm |
I had this same problem in Ubuntu. What worked for me
The problems for me seems to be invalid chromedriver zip file in There seems to too much issues on this on different OSes. Angular team should make a better documentation on this problem. |
Thanks you @jpaljasma , your solution works for me :-) Yosemite: 10.10.3 |
Thanks @jpaljasma, solution worked, Ubuntu 14.04 |
Thanks @jpaljasma, it worked on Debian 7.8. |
@Tintin34 thx :) downloaded the zip to ~/Downloads |
You're welcome :) |
I have managed to fix similar issue by updating Java. |
Thanks @Tintin34! Your solution works on OS X 10.10.3 :) |
@jpaljasma 's solution works for me, thx! |
@Tintin34 solution solved my problem, and looks more solid and safe =D |
Thanks @Alecsandre - your solution worked for me |
I had to ensure I run |
@Alecsandre fix + @jpaljasma fix worked for me. While the first fix alone seems to do the trick, adding @jpaljasma removed the rest of the errors that were printing out. |
On Mac OS X 10.11.1 I find that replacing |
@jasunde fix worked for me. |
@jasunde fix worked for me |
@jasunde fix worked for me as well,thanks ! |
@jasunde fix worked for me on Windows 10 x64 |
@Tintin34 or now @valsouche solution worked for me. Tried almost every other solution but without luck. |
@jasunde fix also worked for me, thanks. |
So spent a good bit of time looking into "Why?" @jasunde fix works. In the office here we have Linux and Mac workstations. The default path to Chrome binary in Linux is /usr/bin/google-chrome and in OSX 10.10 it's /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome When 'npm install' builds 'node_modules' and if that folder gets added to the Git repository of a project where users have different operating systems, protractor isn't able to find the Chrome executable. A simple test which shows if this is the problem: |
And that's a good examples of the reasons why one should not commit the |
Totally @gkalpak! And we fixed that stat on the dev's repository who had done that |
@jasunde fix worked for me on Mac OS X 10.11.3 (El Capitan) with node 5.0.0. Thanks a lot! |
Hi, I am using Mac OSX Yosimite 10.10.5 Just to say that I had to set "directConnect: true" in the protractor-conf.js file AND change "baseUrl", to 127.0.0.1:8000 (probably because I have not set the 127... to 'localhost' in my hosts file). So protractor-conf.js looks something like this: ... chromeOnly: true, baseUrl: 'http://127.0.0.1:8000/', Thanks @Alecsandre and thanks guys, helped a lot! |
…s for the post-1.5.0 era This commit and the accompanying updates to the tutorial steps constitute a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. -- This was inspired by (and loosely based on) angular#289. Mad props to @teropa for leading the way :) Fixes angular#198 Fixes angular#214 Fixes angular#224 Fixes angular#230 Fixes angular#243 Fixes angular#246 Fixes angular#252 Fixes angular#277 Fixes angular#286 Fixes angular#295 Fixes angular#303 Fixes angular#304 Fixes angular#323 Fixes angular#324 Closes angular#268 Closes angular#270 Closes angular#278 Closes angular#280 Closes angular#289 Closes angular#309 Closes angular#311 Closes angular#319
…s for the post-1.5.0 era This commit and the accompanying updates to the tutorial steps constitute a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. * The app's base URL was changed to `/` (instead of `/app/`). -- This was inspired by (and loosely based on) angular#289. Mad props to @teropa for leading the way :) -- The old version of the tutorial, that is compatible with Angular version 1.4 or older, has been saved in the `pre-v1.5.0-snapshot` branch. The `v1.4.x` version of the tutorial should be pointed to that branch instead of `master`. Fixes angular#198 Fixes angular#214 Fixes angular#224 Fixes angular#230 Fixes angular#243 Fixes angular#246 Fixes angular#252 Fixes angular#277 Fixes angular#286 Fixes angular#295 Fixes angular#303 Fixes angular#304 Fixes angular#323 Fixes angular#324 Closes angular#268 Closes angular#270 Closes angular#278 Closes angular#280 Closes angular#289 Closes angular#309 Closes angular#311 Closes angular#319
…s for the post-1.5.0 era This commit and the accompanying updates to the tutorial steps constitute a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. * The app's base URL was changed to `/` (instead of `/app/`). BTW, I have tested with the following versions on Node (on Windows 10) and everything seems to work fine: * 0.11.16 * 4.2.6 * 4.4.2 * 5.10.0 -- This was inspired by (and loosely based on) angular#289. Mad props to @teropa for leading the way :) -- The old version of the tutorial, that is compatible with Angular version 1.4 or older, has been saved in the `pre-v1.5.0-snapshot` branch. The `v1.4.x` version of the tutorial should be pointed to that branch instead of `master`. Fixes angular#198 Fixes angular#214 Fixes angular#224 Fixes angular#230 Fixes angular#243 Fixes angular#246 Fixes angular#252 Fixes angular#277 Fixes angular#286 Fixes angular#295 Fixes angular#303 Fixes angular#304 Fixes angular#323 Fixes angular#324 Closes angular#268 Closes angular#270 Closes angular#278 Closes angular#280 Closes angular#289 Closes angular#309 Closes angular#311 Closes angular#319
…s for the post-1.5.0 era This commit and the accompanying updates to the tutorial steps constitute a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process, several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. * The app's base URL was changed to `/` (instead of `/app/`). BTW, this has been tested with the following versions of Node (on Windows 10) and everything worked fine: * 0.11.16 * 4.2.6 * 4.4.2 * 5.10.0 -- This was inspired by (and loosely based on) angular#289. Mad props to @teropa for leading the way :) -- **Note:** The old version of the tutorial, that is compatible with Angular version 1.4 or older, has been saved on the `pre-v1.5.0-snapshot` branch. The `v1.4.x` version of the tutorial should be pointed to that branch instead of `master`. -- Related to angular/angular.js#14416. Related to angular/angular-seed#329. Related to angular/angular-seed#333. --- Fixes angular#198 Fixes angular#214 Fixes angular#224 Fixes angular#230 Fixes angular#243 Fixes angular#246 Fixes angular#252 Fixes angular#277 Fixes angular#286 Fixes angular#295 Fixes angular#303 Fixes angular#304 Fixes angular#323 Fixes angular#324 Closes angular#268 Closes angular#270 Closes angular#278 Closes angular#280 Closes angular#289 Closes angular#309 Closes angular#311 Closes angular#319
Still having the same issue as mentioned by @mannyfu |
…s for the post-1.5.0 era This commit and the accompanying updates to the tutorial steps constitute a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process, several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. * The app's base URL was changed to `/` (instead of `/app/`). BTW, this has been tested with the following versions of Node (on Windows 10) and everything worked fine: * 0.11.16 * 4.2.6 * 4.4.2 * 5.10.0 -- This was inspired by (and loosely based on) #289. Mad props to @teropa for leading the way :) -- **Note:** The old version of the tutorial, that is compatible with Angular version 1.4 or older, has been saved on the `pre-v1.5.0-snapshot` branch. The `v1.4.x` version of the tutorial should be pointed to that branch instead of `master`. -- Related to angular/angular.js#14416. Related to angular/angular-seed#329. Related to angular/angular-seed#333. --- Fixes #198 Fixes #214 Fixes #224 Fixes #230 Fixes #243 Fixes #246 Fixes #252 Fixes #277 Fixes #286 Fixes #295 Fixes #303 Fixes #304 Fixes #323 Fixes #324 Closes #268 Closes #270 Closes #278 Closes #280 Closes #289 Closes #309 Closes #311 Closes #319
…s for the post-1.5.0 era This commit and the accompanying updates to the tutorial steps constitute a major re-structuring of the tutorial app's codebase, aiming at applying established best practices (in terms of file naming/layout and code organization) and utilizing several new features and enhancements (most notably components) introduced in recent versions of Angular (especially v1.5). Apart from the overall changes, two new chapters were introduced: one on components and one on code organization. -- In the process, several other things were (incidentally) taken care of, including: * Dependencies were upgraded to latest versions. * Animations were polished. * Outdated links were updated. * The app's base URL was changed to `/` (instead of `/app/`). BTW, this has been tested with the following versions of Node (on Windows 10) and everything worked fine: * 0.11.16 * 4.2.6 * 4.4.2 * 5.10.0 -- This was inspired by (and loosely based on) #289. Mad props to @teropa for leading the way :) -- **Note:** The old version of the tutorial, that is compatible with Angular version 1.4 or older, has been saved on the `pre-v1.5.0-snapshot` branch. The `v1.4.x` version of the tutorial should be pointed to that branch instead of `master`. -- Related to angular/angular.js#14416. Related to angular/angular-seed#329. Related to angular/angular-seed#333. --- Fixes #198 Fixes #214 Fixes #224 Fixes #230 Fixes #243 Fixes #246 Fixes #252 Fixes #277 Fixes #286 Fixes #295 Fixes #303 Fixes #304 Fixes #323 Fixes #324 Closes #268 Closes #270 Closes #278 Closes #280 Closes #289 Closes #309 Closes #311 Closes #319
I find add sudo at the begin of the command will resolve the problem. |
chromeOnly: true, this worked for me in osx 10.11.5 |
@schandra-rpx, ooc is |
I was able to run via @AshCoolman fix worked for me OSX El Capitan (10.11.4) |
Hi, trying to run protractor on Mac OS X Yosemite, node v0.12.0, npm 2.5.1 I get the following error (notice
[launcher] Error: Could not find chromedriver at /Users/papple/Devel/angular-phonecat/node_modules/protractor/selenium/chromedriver.exe
):The text was updated successfully, but these errors were encountered: