Repository: Medium/phantomjs

Issue #34: PhantomJS install failed in MacOS 10.8.2 with node 0.10.0 and npm 1.2.14
Created: 2013-03-12T15:23:17Z
use command:
> sudo npm install phantomjs

return:
...
npm http GET ...
...
> phantomjs@1.8.2-0 install /Users/<user>/Dev/github/jquery-rpc/node_modules/phantomjs
> node install.js

Requesting /Users/<user>/Dev/github/jquery-rpc/node_modules/phantomjs/tmp/phantomjs-1.8.2-macosx.zip
Receiving...
Received 782K...
Received 1564K...
Received 2346K...
Received 3128K...
Received 3910K...
Received 4692K...
Received 5475K...
Received 6257K...
Received 7041K...
Received 7823K...
Received 8605K...
Received 8934K total.
Extracting zip contents
Read stream closed

TypeError: undefined is not a function
    at Until.PullStream._flush (/Users/<user>/Dev/github/jquery-rpc/node_modules/phantomjs/node_modules/unzip/node_modules/pullstream/pullstream.js:112:5)
    at Until.<anonymous> (_stream_transform.js:131:12)
    at Until.g (events.js:175:14)
    at Until.EventEmitter.emit (events.js:117:20)
    at finishMaybe (_stream_writable.js:332:12)
    at endWritable (_stream_writable.js:339:3)
    at Until.Writable.end (_stream_writable.js:326:5)
    at /Users/<user>/Dev/github/jquery-rpc/node_modules/phantomjs/node_modules/unzip/lib/parse.js:282:25
    at process._tickCallback (node.js:415:13)
npm ERR! phantomjs@1.8.2-0 install: `node install.js`
npm ERR! `sh "-c" "node install.js"` failed with 8
npm ERR! 
npm ERR! Failed at the phantomjs@1.8.2-0 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "phantomjs"
npm ERR! cwd /Users/<user>/Dev/github/jquery-rpc
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/<user>/Dev/github/jquery-rpc/npm-debug.log
npm ERR! not ok code 0

Duplicate issue #36: PhantomJS install failed in Windows 7 with node 0.10.0 and npm 1.2.14
Created: 2013-03-14T19:45:21Z
phantomjs@1.8.2-0 install C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs
node install.js

Requesting C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs\tmp\phantomjs-1.8.2-windows.zip
Receiving...
Received 783K...
Received 1592K...
Received 2373K...
Received 3154K...
Received 3936K...
Received 4717K...
Received 5498K...
Received 6291K...
Received 6906K total.
Extracting zip contents
Read stream closed
TypeError: undefined is not a function
at Until.PullStream._flush (C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs\node_modules\unzip\node_modules\pullstream\pullstream.js:112:5)
at Until. (_stream_transform.js:131:12)
at Until.g (events.js:175:14)
at Until.EventEmitter.emit (events.js:117:20)
at finishMaybe (_stream_writable.js:332:12)
at endWritable (_stream_writable.js:339:3)
at Until.Writable.end (_stream_writable.js:326:5)
at C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs\node_modules\unzip\lib\parse.js:282:25
at process._tickCallback (node.js:415:13)
npm ERR! error rolling back Error: EPERM, rmdir 'C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs\tmp\phantomjs-1.8.2-windows\phantomjs.exe'
npm ERR! error rolling back  phantomjs@1.8.2-0 { [Error: EPERM, rmdir 'C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs\tmp\phantomjs-1.8.2-windows\phantomjs.exe']
npm ERR! error rolling back   errno: 50,
npm ERR! error rolling back   code: 'EPERM',
npm ERR! error rolling back   path: 'C:\Users\parkjh\Dropbox\js-workspace\webapp1\node_modules\phantomjs\tmp\phantomjs-1.8.2-windows\phantomjs.exe' }
npm ERR! phantomjs@1.8.2-0 install: node install.js
npm ERR! cmd "/c" "node install.js" failed with 8
npm ERR!
npm ERR! Failed at the phantomjs@1.8.2-0 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "phantomjs"
npm ERR! cwd C:\Users\parkjh\Dropbox\js-workspace\webapp1
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\parkjh\Dropbox\js-workspace\webapp1\npm-debug.log
npm ERR! not ok code 0

Closing comment (2013-03-14T20:29:54Z): Duplicate of #34