npm run protractor` doesn't work on Mac OS X 10.9.5 #246
Description
Seems to work intermittently. At the very bottom of this page shows a recent successful run of protractor.
I tried this solution- downloading https://sites.google.com/a/chromium.org/chromedriver/downloads manualy and copy in ... /node_modules/protractor/selenium/ directory
It worked one time, then failed. Help!
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "protractor"
npm ERR! node v0.12.2
npm ERR! npm v2.7.5
npm ERR! code ELIFECYCLE
npm ERR! angular-phonecat@0.0.0 protractor: protractor test/protractor-conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-phonecat@0.0.0 protractor script 'protractor test/protractor-conf.js'.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! protractor test/protractor-conf.js
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/marklovett/angular-phonecat/npm-debug.log
marks-mbp:angular-phonecat marklovett$ nano /Users/marklovett/angular-phonecat/npm-debug.log
Debug log below:
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'run', 'protractor' ]
2 info using npm@2.7.5
3 info using node@v0.12.2
4 verbose run-script [ 'preprotractor', 'protractor', 'postprotractor' ]
5 info preprotractor angular-phonecat@0.0.0
6 verbose unsafe-perm in lifecycle true
7 info protractor angular-phonecat@0.0.0
8 verbose unsafe-perm in lifecycle true
9 info angular-phonecat@0.0.0 Failed to exec protractor script
10 verbose stack Error: angular-phonecat@0.0.0 protractor: `protractor test/pro$
10 verbose stack Exit status 1
10 verbose stack at EventEmitter. (/usr/local/lib/node_modules/n$
10 verbose stack at EventEmitter.emit (events.js:110:17)
10 verbose stack at ChildProcess. (/usr/local/lib/node_modules/n$
10 verbose stack at ChildProcess.emit (events.js:110:17)
10 verbose stack at maybeClose (child_process.js:1015:16)
10 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1$
11 verbose pkgid angular-phonecat@0.0.0
It seems to work intermittently. The last time I ran protractor it worked!
At end of lesson 4, this is what I got:
marks-mbp:angular-phonecat marklovett$ npm run protractor
angular-phonecat@0.0.0 preprotractor /Users/marklovett/angular-phonecat
npm run update-webdriverangular-phonecat@0.0.0 preupdate-webdriver /Users/marklovett/angular-phonecat
npm installangular-phonecat@0.0.0 postinstall /Users/marklovett/angular-phonecat
bower installangular-phonecat@0.0.0 update-webdriver /Users/marklovett/angular-phonecat
webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.
angular-phonecat@0.0.0 protractor /Users/marklovett/angular-phonecat
protractor test/protractor-conf.js
util.puts: Use console.log instead
Using ChromeDriver directly...
..
Finished in 3.871 seconds
2 tests, 5 assertions, 0 failures