Skip to content

Instantly share code, notes, and snippets.

@ToJans
Created March 15, 2013 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ToJans/5169008 to your computer and use it in GitHub Desktop.
Save ToJans/5169008 to your computer and use it in GitHub Desktop.
Apparently there is a problem with the zip for windows? unzipping it gives me a crc error on phantomjs.exe, and npm install phantomjs fails
Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.
C:\data>npm install phantomjs
npm http GET https://registry.npmjs.org/phantomjs
npm http 200 https://registry.npmjs.org/phantomjs
npm http GET https://registry.npmjs.org/phantomjs/-/phantomjs-1.8.2-0.tgz
npm http 200 https://registry.npmjs.org/phantomjs/-/phantomjs-1.8.2-0.tgz
npm http GET https://registry.npmjs.org/unzip
npm http GET https://registry.npmjs.org/rimraf
npm http 200 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf/-/rimraf-2.0.3.tgz
npm http 200 https://registry.npmjs.org/unzip
npm http GET https://registry.npmjs.org/unzip/-/unzip-0.1.5.tgz
npm http 200 https://registry.npmjs.org/rimraf/-/rimraf-2.0.3.tgz
npm http 200 https://registry.npmjs.org/unzip/-/unzip-0.1.5.tgz
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/pullstream
npm http GET https://registry.npmjs.org/binary
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/setimmediate
npm http GET https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/over/0.0.5
npm http GET https://registry.npmjs.org/fstream
npm http 200 https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.1.14.tgz
npm http 200 https://registry.npmjs.org/setimmediate
npm http GET https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.1.tgz
npm http 200 https://registry.npmjs.org/binary
npm http GET https://registry.npmjs.org/binary/-/binary-0.3.0.tgz
npm http 200 https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz
npm http 200 https://registry.npmjs.org/pullstream
npm http GET https://registry.npmjs.org/pullstream/-/pullstream-0.1.0.tgz
npm http 200 https://registry.npmjs.org/over/0.0.5
npm http GET https://registry.npmjs.org/over/-/over-0.0.5.tgz
npm http 200 https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.1.14.tgz
npm http 200 https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.1.tgz
npm http 200 https://registry.npmjs.org/binary/-/binary-0.3.0.tgz
npm http 200 https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz
npm http 200 https://registry.npmjs.org/pullstream/-/pullstream-0.1.0.tgz
npm http 200 https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/fstream/-/fstream-0.1.22.tgz
npm http 200 https://registry.npmjs.org/over/-/over-0.0.5.tgz
npm http 200 https://registry.npmjs.org/fstream/-/fstream-0.1.22.tgz
npm http 200 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.2.tgz
npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.2.tgz
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/readable-stream/-/readable-stream-0.2.0.tgz
npm http 304 https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.0.tgz
npm http 200 https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/chainsaw
npm http GET https://registry.npmjs.org/inherits/-/inherits-1.0.0.tgz
npm http GET https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz
npm http 200 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/inherits/-/inherits-1.0.0.tgz
npm http 200 https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz
npm http GET https://registry.npmjs.org/traverse
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-0.2.0.tgz
npm http 200 https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.0.tgz
npm http 200 https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz
npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz
> phantomjs@1.8.2-0 install C:\data\node_modules\phantomjs
> node install.js
Requesting C:\data\node_modules\phantomjs\tmp\phantomjs-1.8.2-windows.zip
Receiving...
Received 784K...
Received 1565K...
Received 2348K...
Received 3129K...
Received 3914K...
Received 4695K...
Received 5479K...
Received 6263K...
Received 6906K total.
Extracting zip contents
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object function Buffer(subject, encoding, offset) {
if (!(this instanceof Buffer)) {
return new Buffer(subject, encoding, offset);
}
var type;
// Are we slicing?
if (typeof offset === 'number') {
this.length = coerce(encoding);
this.parent = subject;
this.offset = offset;
} else {
// Find the length
switch (type = typeof subject) {
case 'number':
this.length = coerce(subject);
break;
case 'string':
this.length = Buffer.byteLength(subject, encoding);
break;
case 'object': // Assume object is an array
this.length = coerce(subject.length);
break;
default:
throw new Error('First argument needs to be a number, ' +
'array or string.');
}
if (this.length > Buffer.poolSize) {
// Big buffer, just alloc one.
this.parent = new SlowBuffer(this.length);
this.offset = 0;
} else {
// Small buffer.
if (!pool || pool.length - pool.used < this.length) allocPool();
this.parent = pool;
this.offset = pool.used;
pool.used += this.length;
}
// Treat array-ish objects as a byte array.
if (isArrayIsh(subject)) {
for (var i = 0; i < this.length; i++) {
this.parent[i + this.offset] = subject[i];
}
} else if (type == 'string') {
// We are a string
this.length = this.write(subject, 0, encoding);
}
}
SlowBuffer.makeFastBuffer(this.parent, this, this.offset, this.length);
} has no method 'concat'
at fromList (C:\data\node_modules\phantomjs\node_modules\unzip\node_modules\readable-stream\lib\_stream_readable.js:816:20)
at Entry.read (C:\data\node_modules\phantomjs\node_modules\unzip\node_modules\readable-stream\lib\_stream_readable.js:308:11)
at Entry.<anonymous> (C:\data\node_modules\phantomjs\node_modules\unzip\node_modules\readable-stream\lib\_stream_readable.js:701
:45)
at Entry.emit (events.js:64:17)
at Array.2 (C:\data\node_modules\phantomjs\node_modules\unzip\node_modules\readable-stream\lib\_stream_readable.js:719:16)
at EventEmitter._tickCallback (node.js:192:40)
npm ERR! phantomjs@1.8.2-0 install: `node install.js`
npm ERR! `cmd "/c" "node install.js"` failed with 1
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!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "phantomjs"
npm ERR! cwd C:\data
npm ERR! node -v v0.6.17
npm ERR! npm -v 1.1.21
npm ERR! code ELIFECYCLE
npm ERR! message phantomjs@1.8.2-0 install: `node install.js`
npm ERR! message `cmd "/c" "node install.js"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\data\npm-debug.log
npm not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment