pghalliday / node-BrowserStackTunnel

https://www.npmjs.com/package/browserstacktunnel-wrapper
MIT License
17 stars 24 forks source link

Stuck on 'download binary for darwin-x64' in Node 0.11.13 #12

Closed mgol closed 10 years ago

mgol commented 10 years ago

Installation of the BrowserStack tunnel doesn't work for me in Node 0.11.13.

To reproduce, checkout https://github.com/jquery/sizzle/ and run:

npm install
grunt test

I get stuck forever on this:

(...)

Running "karma:phantom" (karma) task
INFO [karma]: Karma v0.12.17 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.7 (Mac OS X)]: Connected on socket sW76nq4S25pzDSo1cxqd with id 7148958
WARN [PhantomJS 1.9.7 (Mac OS X)]: Adapter did not report total number of specs.
PhantomJS 1.9.7 (Mac OS X): Executed 35 of 0 SUCCESS (0.29 secs / 0.434 secs)

Running "karma:desktop" (karma) task
INFO [karma]: Karma v0.12.17 server started at http://localhost:9876/
BrowserStackTunnel: binary not present
INFO [launcher]: Starting browser chrome 34.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser chrome 35.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser firefox 17.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser firefox 24.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser firefox 28.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser firefox 29.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser ie 9.0 (Windows 7) on BrowserStack
INFO [launcher]: Starting browser ie 10.0 (Windows 8) on BrowserStack
INFO [launcher]: Starting browser ie 11.0 (Windows 8.1) on BrowserStack
INFO [launcher]: Starting browser opera 20.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser opera 21.0 (OS X Mavericks) on BrowserStack
INFO [launcher]: Starting browser safari 6.0 (OS X Lion) on BrowserStack
INFO [launcher]: Starting browser safari 6.1 (OS X Mountain Lion) on BrowserStack
INFO [launcher]: Starting browser safari 7.0 (OS X Mavericks) on BrowserStack
BrowserStackTunnel: download binary for darwin-x64 ...

Works fine in Node 0.10.29.

pghalliday commented 10 years ago

Thanks, I will have to give it a try

lucasfeliciano commented 10 years ago

Did you downloaded the binary, double checked the path? Because it is working for me here.

mgol commented 10 years ago

I can't reproduce it any more with Node 0.11.14. Closing.

scottopherson commented 9 years ago

I'm running into this issue, though it's hard to reproduce because it happens intermittently.

It seems the close event doesn't get fired sometimes: https://github.com/pghalliday/node-BrowserStackTunnel/blob/master/src/ZipBinary.js#L21. It appears this may be a legitimate issue with the unzip library currently being used:

Given that the node-unzip project is not very active and that the streaming feature it provides is flawed it may be better to utilize an alternative library for unzipping. I haven't used it myself yet but yauzl seems to be popular.

lucasfeliciano commented 9 years ago

Thank you for let me know. I'll look at it on Sunday, OK? I'm super behind of the schedule on my roadmap so I have to work on weekend. :( On qui, 20 de ago de 2015 at 22:58 Scott Christopherson < notifications@github.com> wrote:

I'm running into this issue, though it's hard to reproduce because it happens intermittently.

It seems the close event doesn't get fired sometimes: https://github.com/pghalliday/node-BrowserStackTunnel/blob/master/src/ZipBinary.js#L21. It appears this may be a legitimate issue with the unzip library currently being used:

Given that the node-unzip project is not very active https://github.com/EvanOxfeld/node-unzip/issues/50 and that the streaming feature it provides is flawed https://github.com/thejoshwolfe/yauzl#no-streaming-unzip-api it may be better to utilize an alternative library for unzipping. I haven't used it myself yet but yauzl https://github.com/thejoshwolfe/yauzl seems to be popular.

— Reply to this email directly or view it on GitHub https://github.com/pghalliday/node-BrowserStackTunnel/issues/12#issuecomment-133168594 .