Closed enriko closed 10 years ago
hey @enriko!
i tried to reproduce this but couldn't, can you try the following steps?
λ analytics.js-integrations (master): node -v
v0.11.13
λ analytics.js-integrations (master): npm -v
1.4.9
λ analytics.js-integrations (master): npm cache clean
λ analytics.js-integrations (master): make clean
λ analytics.js-integrations (master): make test
if that doesn't work can you run uname
and DEBUG=duo* make clean test
and paste the output ?
cheers.
$ uname Darwin
$ DEBUG=duo* make clean test npm http GET https://registry.npmjs.org/mocha-phantomjs npm http GET https://registry.npmjs.org/uglify-js npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/phantomjs npm http GET https://registry.npmjs.org/mocha npm http GET https://registry.npmjs.org/jscs npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/duo npm http 304 https://registry.npmjs.org/uglify-js npm http 304 https://registry.npmjs.org/phantomjs npm http 304 https://registry.npmjs.org/express npm http 304 https://registry.npmjs.org/mocha-phantomjs npm http 304 https://registry.npmjs.org/mocha npm http 304 https://registry.npmjs.org/duo npm http 304 https://registry.npmjs.org/jscs npm http 304 https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/which npm http GET https://registry.npmjs.org/adm-zip npm http GET https://registry.npmjs.org/kew npm http GET https://registry.npmjs.org/ncp npm http GET https://registry.npmjs.org/npmconf npm http GET https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/progress npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/request-progress npm http GET https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/which npm http 304 https://registry.npmjs.org/adm-zip npm http 304 https://registry.npmjs.org/ncp npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/progress npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/kew npm http 304 https://registry.npmjs.org/npmconf npm http GET https://registry.npmjs.org/range-parser npm http GET https://registry.npmjs.org/cookie npm http GET https://registry.npmjs.org/buffer-crc32 npm http GET https://registry.npmjs.org/fresh npm http GET https://registry.npmjs.org/methods npm http GET https://registry.npmjs.org/send npm http GET https://registry.npmjs.org/cookie-signature npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/connect npm http 304 https://registry.npmjs.org/cookie npm http 304 https://registry.npmjs.org/buffer-crc32 npm http 304 https://registry.npmjs.org/send npm http 304 https://registry.npmjs.org/methods npm http 304 https://registry.npmjs.org/fresh npm http 304 https://registry.npmjs.org/range-parser npm http GET https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/cookie-signature npm http 304 https://registry.npmjs.org/debug npm http 304 https://registry.npmjs.org/request-progress npm http 304 https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/throttleit npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/ms npm http GET https://registry.npmjs.org/once npm http GET https://registry.npmjs.org/osenv npm http GET https://registry.npmjs.org/nopt npm http GET https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/ini npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/config-chain npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/throttleit npm http 304 https://registry.npmjs.org/once npm http 304 https://registry.npmjs.org/nopt npm http 304 https://registry.npmjs.org/semver npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/config-chain npm http 304 https://registry.npmjs.org/osenv npm http 304 https://registry.npmjs.org/ms npm http GET https://registry.npmjs.org/forever-agent npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/tough-cookie npm http GET https://registry.npmjs.org/form-data npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/http-signature npm http GET https://registry.npmjs.org/oauth-sign npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/aws-sign2 npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/json-stringify-safe npm http 304 https://registry.npmjs.org/ini npm http 304 https://registry.npmjs.org/forever-agent npm http 304 https://registry.npmjs.org/http-signature npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/tough-cookie npm http 304 https://registry.npmjs.org/form-data npm http 304 https://registry.npmjs.org/aws-sign2 npm http 304 https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/hawk npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/json-stringify-safe npm http GET https://registry.npmjs.org/jade npm http GET https://registry.npmjs.org/diff npm http GET https://registry.npmjs.org/glob npm http GET https://registry.npmjs.org/growl npm http 304 https://registry.npmjs.org/glob npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/diff npm http GET https://registry.npmjs.org/optimist npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/uglify-to-browserify npm http GET https://registry.npmjs.org/source-map npm http GET https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/jade npm http 304 https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/proto-list npm http 304 https://registry.npmjs.org/uglify-to-browserify npm http GET https://registry.npmjs.org/assert-plus npm http 304 https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/asn1 npm http GET https://registry.npmjs.org/ctype npm http 304 https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/optimist npm http 304 https://registry.npmjs.org/source-map npm http 304 https://registry.npmjs.org/assert-plus npm http 304 https://registry.npmjs.org/ctype npm http 304 https://registry.npmjs.org/asn1 npm http 304 https://registry.npmjs.org/proto-list npm http 304 https://registry.npmjs.org/growl npm http GET https://registry.npmjs.org/delayed-stream npm http 304 https://registry.npmjs.org/delayed-stream npm http GET https://registry.npmjs.org/wordwrap npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/wordwrap npm http GET https://registry.npmjs.org/punycode npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/punycode npm http GET https://registry.npmjs.org/sntp npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/amdefine npm http GET https://registry.npmjs.org/formidable npm http GET https://registry.npmjs.org/bytes npm http GET https://registry.npmjs.org/pause npm http 304 https://registry.npmjs.org/amdefine npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/pause npm http 304 https://registry.npmjs.org/bytes npm http GET https://registry.npmjs.org/esprima npm http GET https://registry.npmjs.org/strip-json-comments npm http GET https://registry.npmjs.org/vow npm http GET https://registry.npmjs.org/vow-fs npm http GET https://registry.npmjs.org/xmlbuilder npm http GET https://registry.npmjs.org/colors npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/esprima npm http 304 https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/strip-json-comments npm http 304 https://registry.npmjs.org/vow-fs npm http 304 https://registry.npmjs.org/xmlbuilder
phantomjs@1.9.7-12 install /Users/enriko/work/iv/analytics.js-integrations/node_modules/phantomjs node install.js
PhantomJS detected, but wrong version 1.6.0 @ /usr/local/phantomjs/bin/phantomjs. Download already available at /var/folders/b8/x3zvfsw576x8frvcx_5w30_80000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip Extracting zip contents Copying extracted folder /var/folders/b8/x3zvfsw576x8frvcx_5w30_80000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1404445099085/phantomjs-1.9.7-macosx -> /Users/enriko/work/iv/analytics.js-integrations/node_modules/phantomjs/lib/phantom Writing location.js file Done. Phantomjs binary available at /Users/enriko/work/iv/analytics.js-integrations/node_modules/phantomjs/lib/phantom/bin/phantomjs npm http 304 https://registry.npmjs.org/colors npm http 304 https://registry.npmjs.org/vow npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"v0.11.13","npm":"1.4.9"}) npm http GET https://registry.npmjs.org/vow-queue npm http GET https://registry.npmjs.org/lodash-node npm http 304 https://registry.npmjs.org/vow-queue npm http 304 https://registry.npmjs.org/lodash-node npm http GET https://registry.npmjs.org/archy npm http GET https://registry.npmjs.org/array npm http GET https://registry.npmjs.org/clone-component npm http GET https://registry.npmjs.org/co npm http GET https://registry.npmjs.org/co-fs npm http GET https://registry.npmjs.org/co-parallel npm http GET https://registry.npmjs.org/duo-pack npm http GET https://registry.npmjs.org/duo-package npm http GET https://registry.npmjs.org/duo-test npm http GET https://registry.npmjs.org/duo-string-to-js npm http GET https://registry.npmjs.org/extend.js npm http GET https://registry.npmjs.org/file-deps npm http GET https://registry.npmjs.org/max-component npm http GET https://registry.npmjs.org/stream-log npm http GET https://registry.npmjs.org/thunkify npm http GET https://registry.npmjs.org/v8-argv npm http GET https://registry.npmjs.org/win-fork npm http GET https://registry.npmjs.org/co-exists npm http 304 https://registry.npmjs.org/archy npm http 304 https://registry.npmjs.org/co npm http 304 https://registry.npmjs.org/co-fs npm http 304 https://registry.npmjs.org/stream-log npm http 304 https://registry.npmjs.org/co-exists npm http 304 https://registry.npmjs.org/win-fork npm http 304 https://registry.npmjs.org/thunkify npm http 304 https://registry.npmjs.org/clone-component npm http 304 https://registry.npmjs.org/duo-package npm http 304 https://registry.npmjs.org/duo-string-to-js npm http 304 https://registry.npmjs.org/max-component npm http 304 https://registry.npmjs.org/file-deps npm http 304 https://registry.npmjs.org/duo-pack npm http 304 https://registry.npmjs.org/extend.js npm http 304 https://registry.npmjs.org/duo-test npm http 304 https://registry.npmjs.org/v8-argv npm http 304 https://registry.npmjs.org/array npm http 304 https://registry.npmjs.org/co-parallel npm http GET https://registry.npmjs.org/string-to-js npm http GET https://registry.npmjs.org/co-thread npm http GET https://registry.npmjs.org/to-function npm http GET https://registry.npmjs.org/component-type npm http GET https://registry.npmjs.org/co-req npm http GET https://registry.npmjs.org/duo-cache npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/gh-resolve npm http GET https://registry.npmjs.org/enstore npm http GET https://registry.npmjs.org/node-netrc npm http GET https://registry.npmjs.org/tar npm http GET https://registry.npmjs.org/co-from-stream npm http GET https://registry.npmjs.org/combine-source-map npm http GET https://registry.npmjs.org/mini-tokenizer npm http 304 https://registry.npmjs.org/component-type npm http 304 https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/minimist npm http 304 https://registry.npmjs.org/tar npm http 304 https://registry.npmjs.org/node-netrc npm http 304 https://registry.npmjs.org/duo-cache npm http 304 https://registry.npmjs.org/combine-source-map npm http 304 https://registry.npmjs.org/co-from-stream npm http 304 https://registry.npmjs.org/string-to-js npm http GET https://registry.npmjs.org/to-function npm http GET https://registry.npmjs.org/emitter-component npm http GET https://registry.npmjs.org/duo-cache/-/duo-cache-1.1.2.tgz npm http 304 https://registry.npmjs.org/co-thread npm http 304 https://registry.npmjs.org/minimist npm http 304 https://registry.npmjs.org/to-function npm http 304 https://registry.npmjs.org/co-req npm http 304 https://registry.npmjs.org/mini-tokenizer npm http 304 https://registry.npmjs.org/enstore npm http 304 https://registry.npmjs.org/to-function npm http 200 https://registry.npmjs.org/duo-cache/-/duo-cache-1.1.2.tgz npm http 304 https://registry.npmjs.org/emitter-component npm http GET https://registry.npmjs.org/co-read npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/koa npm http GET https://registry.npmjs.org/koa-common npm http GET https://registry.npmjs.org/koa-route npm http GET https://registry.npmjs.org/mocha npm http GET https://registry.npmjs.org/koa-static npm http GET https://registry.npmjs.org/localtunnel npm http GET https://registry.npmjs.org/open npm http GET https://registry.npmjs.org/wd npm http GET https://registry.npmjs.org/to-pascal-case npm http GET https://registry.npmjs.org/wd-browser npm http GET https://registry.npmjs.org/buffer-events npm http GET https://registry.npmjs.org/co-exec npm http 304 https://registry.npmjs.org/gh-resolve npm http 304 https://registry.npmjs.org/mocha npm http 304 https://registry.npmjs.org/debug npm http 304 https://registry.npmjs.org/open npm http GET https://registry.npmjs.org/inline-source-map npm http GET https://registry.npmjs.org/convert-source-map npm http 304 https://registry.npmjs.org/koa-static npm http 304 https://registry.npmjs.org/koa-route npm http 304 https://registry.npmjs.org/koa-common npm http 304 https://registry.npmjs.org/buffer-events npm http 304 https://registry.npmjs.org/wd-browser npm http 304 https://registry.npmjs.org/wd npm http 304 https://registry.npmjs.org/koa npm http 304 https://registry.npmjs.org/localtunnel npm http 304 https://registry.npmjs.org/co-read npm http 304 https://registry.npmjs.org/co-exec npm http 304 https://registry.npmjs.org/convert-source-map npm http 304 https://registry.npmjs.org/inline-source-map npm http GET https://registry.npmjs.org/component-props npm http GET https://registry.npmjs.org/remove-try-require npm http 304 https://registry.npmjs.org/to-pascal-case npm http GET https://registry.npmjs.org/props-component npm http 304 https://registry.npmjs.org/remove-try-require npm http GET https://registry.npmjs.org/netrc npm http GET https://registry.npmjs.org/hyperdirect npm http GET https://registry.npmjs.org/through npm http GET https://registry.npmjs.org/monotonic-timestamp npm http 304 https://registry.npmjs.org/component-props npm http GET https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/through npm http 304 https://registry.npmjs.org/monotonic-timestamp npm http 304 https://registry.npmjs.org/props-component npm http 304 https://registry.npmjs.org/hyperdirect npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/netrc npm http GET https://registry.npmjs.org/ast-transform npm http GET https://registry.npmjs.org/ast-parents npm http GET https://registry.npmjs.org/replace-method npm http GET https://registry.npmjs.org/hyperquest npm http GET https://registry.npmjs.org/ms npm http 304 https://registry.npmjs.org/ast-transform npm http 304 https://registry.npmjs.org/hyperquest npm http 304 https://registry.npmjs.org/replace-method npm http 304 https://registry.npmjs.org/ms npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/form-data npm http GET https://registry.npmjs.org/tough-cookie npm http GET https://registry.npmjs.org/http-signature npm http GET https://registry.npmjs.org/oauth-sign npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/aws-sign2 npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/json-stringify-safe npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/forever-agent npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/form-data npm http 304 https://registry.npmjs.org/aws-sign2 npm http 304 https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/http-signature npm http 304 https://registry.npmjs.org/hawk npm http 304 https://registry.npmjs.org/tough-cookie npm http 304 https://registry.npmjs.org/json-stringify-safe npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/forever-agent npm http 304 https://registry.npmjs.org/ast-parents npm http GET https://registry.npmjs.org/koa-conditional-get npm http GET https://registry.npmjs.org/koa-compress npm http GET https://registry.npmjs.org/koa-ratelimit npm http GET https://registry.npmjs.org/koa-session npm http GET https://registry.npmjs.org/koa-send npm http GET https://registry.npmjs.org/koa-mount npm http GET https://registry.npmjs.org/methods npm http GET https://registry.npmjs.org/koa-response-time npm http GET https://registry.npmjs.org/path-to-regexp npm http GET https://registry.npmjs.org/koa-logger npm http GET https://registry.npmjs.org/koa-favicon npm http GET https://registry.npmjs.org/koa-etag npm http GET https://registry.npmjs.org/koa-rewrite npm http 304 https://registry.npmjs.org/methods npm http 304 https://registry.npmjs.org/koa-session npm http 304 https://registry.npmjs.org/path-to-regexp npm http 304 https://registry.npmjs.org/koa-rewrite npm http 304 https://registry.npmjs.org/koa-response-time npm http 304 https://registry.npmjs.org/koa-favicon npm http 304 https://registry.npmjs.org/koa-etag npm http 304 https://registry.npmjs.org/koa-ratelimit npm http 304 https://registry.npmjs.org/koa-conditional-get npm http 304 https://registry.npmjs.org/koa-logger npm http 304 https://registry.npmjs.org/koa-compress npm http 304 https://registry.npmjs.org/koa-mount npm http GET https://registry.npmjs.org/optimist npm http 304 https://registry.npmjs.org/koa-send npm http GET https://registry.npmjs.org/component-emitter npm http GET https://registry.npmjs.org/component-bind npm http GET https://registry.npmjs.org/escodegen npm http 304 https://registry.npmjs.org/optimist npm http 304 https://registry.npmjs.org/component-emitter npm http 304 https://registry.npmjs.org/component-bind npm http GET https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/recast npm http 304 https://registry.npmjs.org/escodegen npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/accepts npm http GET https://registry.npmjs.org/koa-compose npm http GET https://registry.npmjs.org/fresh npm http GET https://registry.npmjs.org/koa-is-json npm http GET https://registry.npmjs.org/type-is npm http GET https://registry.npmjs.org/mime-types npm http GET https://registry.npmjs.org/finished npm http GET https://registry.npmjs.org/buffer-crc32 npm http GET https://registry.npmjs.org/cookies npm http GET https://registry.npmjs.org/delegates npm http GET https://registry.npmjs.org/dethroy npm http GET https://registry.npmjs.org/error-inject npm http GET https://registry.npmjs.org/statuses npm http GET https://registry.npmjs.org/vary npm http GET https://registry.npmjs.org/only npm http GET https://registry.npmjs.org/escape-html npm http 304 https://registry.npmjs.org/recast npm http GET https://registry.npmjs.org/passthrough-counter npm http GET https://registry.npmjs.org/humanize-number npm http GET https://registry.npmjs.org/ratelimiter npm http GET https://registry.npmjs.org/koa-compose npm http 304 https://registry.npmjs.org/fresh npm http 304 https://registry.npmjs.org/buffer-crc32 npm http 304 https://registry.npmjs.org/koa-compose npm http 304 https://registry.npmjs.org/type-is npm http 304 https://registry.npmjs.org/mime-types npm http 304 https://registry.npmjs.org/cookies npm http 304 https://registry.npmjs.org/escape-html npm http 304 https://registry.npmjs.org/dethroy npm http 304 https://registry.npmjs.org/koa-compose npm http 304 https://registry.npmjs.org/vary npm http 304 https://registry.npmjs.org/accepts npm http 304 https://registry.npmjs.org/only npm http 304 https://registry.npmjs.org/passthrough-counter npm http 304 https://registry.npmjs.org/koa-is-json npm http 304 https://registry.npmjs.org/delegates npm http 304 https://registry.npmjs.org/statuses npm http 304 https://registry.npmjs.org/humanize-number npm http GET https://registry.npmjs.org/block-stream npm http GET https://registry.npmjs.org/fstream npm http GET https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/finished npm http 304 https://registry.npmjs.org/error-inject npm http 304 https://registry.npmjs.org/ratelimiter npm http GET https://registry.npmjs.org/compressible npm http GET https://registry.npmjs.org/duplexer npm http 304 https://registry.npmjs.org/block-stream npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/compressible npm http 304 https://registry.npmjs.org/fstream npm http 304 https://registry.npmjs.org/duplexer npm http GET https://registry.npmjs.org/ctype npm http GET https://registry.npmjs.org/assert-plus npm http GET https://registry.npmjs.org/asn1 npm http 304 https://registry.npmjs.org/ctype npm http 304 https://registry.npmjs.org/asn1 npm http 304 https://registry.npmjs.org/assert-plus npm http GET https://registry.npmjs.org/delayed-stream npm http 304 https://registry.npmjs.org/delayed-stream npm http GET https://registry.npmjs.org/ee-first npm http GET https://registry.npmjs.org/negotiator npm http GET https://registry.npmjs.org/to-space-case npm http GET https://registry.npmjs.org/media-typer npm http 304 https://registry.npmjs.org/negotiator npm http 304 https://registry.npmjs.org/ee-first npm http 304 https://registry.npmjs.org/media-typer npm http 304 https://registry.npmjs.org/to-space-case npm http GET https://registry.npmjs.org/keygrip npm http GET https://registry.npmjs.org/amdefine npm http 304 https://registry.npmjs.org/amdefine npm http 304 https://registry.npmjs.org/keygrip npm http GET https://registry.npmjs.org/wordwrap npm http 304 https://registry.npmjs.org/wordwrap npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/source-map npm http GET https://registry.npmjs.org/estraverse npm http GET https://registry.npmjs.org/esutils npm http 304 https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/punycode npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/source-map npm http 304 https://registry.npmjs.org/estraverse npm http 304 https://registry.npmjs.org/esutils npm http GET https://registry.npmjs.org/to-no-case npm http 304 https://registry.npmjs.org/punycode npm http 304 https://registry.npmjs.org/to-no-case npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/ast-types npm http GET https://registry.npmjs.org/private npm http GET https://registry.npmjs.org/cls npm http GET https://registry.npmjs.org/growl npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/jade npm http GET https://registry.npmjs.org/diff npm http GET https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/jade npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/growl npm http 304 https://registry.npmjs.org/diff npm http 304 https://registry.npmjs.org/private npm http 304 https://registry.npmjs.org/cls npm http 304 https://registry.npmjs.org/ast-types npm http GET https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/sigmund npm http GET https://registry.npmjs.org/archiver npm http GET https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/underscore.string npm http GET https://registry.npmjs.org/vargs npm http 304 https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/archiver npm http 304 https://registry.npmjs.org/vargs npm http 304 https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/tar-stream npm http GET https://registry.npmjs.org/zip-stream npm http GET https://registry.npmjs.org/lazystream npm http GET https://registry.npmjs.org/file-utils npm http GET https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/file-utils npm http 304 https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/tar-stream npm http 304 https://registry.npmjs.org/zip-stream npm http 304 https://registry.npmjs.org/lazystream npm http GET https://registry.npmjs.org/crc32-stream npm http GET https://registry.npmjs.org/deflate-crc32-stream npm http 304 https://registry.npmjs.org/crc32-stream npm http GET https://registry.npmjs.org/core-util-is npm http GET https://registry.npmjs.org/isarray npm http GET https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/core-util-is npm http 304 https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/isarray npm http GET https://registry.npmjs.org/bl npm http GET https://registry.npmjs.org/end-of-stream npm http GET https://registry.npmjs.org/xtend npm http 304 https://registry.npmjs.org/deflate-crc32-stream npm http 304 https://registry.npmjs.org/xtend npm http 304 https://registry.npmjs.org/bl npm http 304 https://registry.npmjs.org/end-of-stream npm http GET https://registry.npmjs.org/once npm http GET https://registry.npmjs.org/iconv-lite npm http GET https://registry.npmjs.org/findup-sync npm http GET https://registry.npmjs.org/isbinaryfile npm http 304 https://registry.npmjs.org/once npm http 304 https://registry.npmjs.org/iconv-lite npm http 304 https://registry.npmjs.org/isbinaryfile npm http 304 https://registry.npmjs.org/findup-sync underscore@1.4.4 node_modules/underscore
uglify-js@2.4.14 node_modules/uglify-js ├── uglify-to-browserify@1.0.2 ├── async@0.2.10 ├── optimist@0.3.7 (wordwrap@0.0.2) └── source-map@0.1.34 (amdefine@0.1.0)
mocha@1.18.2 node_modules/mocha ├── diff@1.0.7 ├── growl@1.7.0 ├── commander@2.0.0 ├── mkdirp@0.3.5 ├── debug@1.0.2 (ms@0.6.2) ├── glob@3.2.3 (inherits@2.0.1, graceful-fs@2.0.3, minimatch@0.2.14) └── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
express@3.1.2 node_modules/express ├── methods@0.0.1 ├── fresh@0.1.0 ├── range-parser@0.0.4 ├── cookie-signature@1.0.0 ├── cookie@0.0.5 ├── buffer-crc32@0.2.3 ├── commander@0.6.1 ├── debug@1.0.2 (ms@0.6.2) ├── send@0.1.0 (mime@1.2.6) ├── mkdirp@0.3.5 └── connect@2.7.5 (pause@0.0.1, bytes@0.2.0, buffer-crc32@0.1.1, formidable@1.0.11, qs@0.5.1)
mocha-phantomjs@3.1.6 node_modules/mocha-phantomjs ├── which@1.0.5 ├── commander@1.2.0 (keypress@0.1.0) └── mocha@1.13.0 (diff@1.0.7, growl@1.7.0, commander@0.6.1, debug@1.0.2, mkdirp@0.3.5, glob@3.2.3, jade@0.26.3)
phantomjs@1.9.7-12 node_modules/phantomjs ├── which@1.0.5 ├── progress@1.1.7 ├── rimraf@2.2.8 ├── kew@0.1.7 ├── ncp@0.4.2 ├── mkdirp@0.3.5 ├── request-progress@0.3.1 (throttleit@0.0.2) ├── adm-zip@0.2.1 ├── npmconf@0.0.24 (inherits@1.0.0, once@1.1.1, osenv@0.0.3, ini@1.1.0, semver@1.1.4, nopt@2.2.1, config-chain@1.1.8) └── request@2.36.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, oauth-sign@0.3.0, tunnel-agent@0.4.0, node-uuid@1.4.1, mime@1.2.11, form-data@0.1.4, tough-cookie@0.12.1, http-signature@0.10.0, hawk@1.0.0)
jscs@1.5.7 node_modules/jscs ├── strip-json-comments@0.1.3 ├── commander@2.2.0 ├── vow@0.4.4 ├── colors@0.6.2 ├── minimatch@0.3.0 (sigmund@1.0.0, lru-cache@2.5.0) ├── glob@4.0.3 (once@1.3.0, inherits@2.0.1, graceful-fs@3.0.2) ├── vow-fs@0.3.2 (vow-queue@0.3.1, node-uuid@1.4.0, glob@3.2.8) ├── esprima@1.2.2 └── xmlbuilder@2.2.1 (lodash-node@2.4.1)
duo@0.4.1 node_modules/duo ├── co@3.0.6 ├── debug@0.8.1 ├── co-exists@0.0.1 ├── stream-log@0.1.0 ├── bytes@1.0.0 ├── win-fork@1.1.1 ├── thunkify@2.1.2 ├── extend.js@0.0.1 ├── commander@2.2.0 ├── archy@0.0.2 ├── v8-argv@0.2.0 ├── duo-string-to-js@0.0.2 (string-to-js@0.0.1) ├── co-parallel@1.0.0 (co-thread@0.0.1) ├── file-deps@0.0.5 (mini-tokenizer@0.1.2) ├── mkdirp@0.5.0 (minimist@0.0.8) ├── clone-component@0.2.2 (component-type@1.0.0) ├── co-fs@1.2.0 (thunkify@0.0.1, co-from-stream@0.0.0) ├── array@0.4.3 (emitter-component@1.1.1, to-function@1.2.1) ├── duo-pack@1.0.1 (combine-source-map@0.3.0) ├── duo-package@0.2.10 (thunkify@0.0.1, enstore@0.0.2, duo-cache@1.1.2, node-netrc@0.0.1, gh-resolve@2.0.2, semver@2.3.1, co-req@0.0.4, tar@0.1.20, request@2.36.0) ├── duo-test@0.1.3 (buffer-events@0.0.2, co-exec@1.1.0, wd-browser@0.1.1, open@0.0.5, debug@1.0.2, koa-route@1.1.4, queue-component@1.0.6, koa-static@1.4.5, koa-common@1.2.0, koa@0.8.1, to-pascal-case@0.0.2, localtunnel@1.3.0, mocha@1.20.1, wd@0.3.3) └── max-component@1.0.0 (to-function@2.0.5) duo-package read auth details from ~/.netrc +0ms duo plugin - +0ms duo transform test/index.js, js +12ms duo cannot resolve "./tests" in "/Users/enriko/work/iv/analytics.js-integrations/test/index.js" +7ms duo-package component-assert@0.4.0: fetching +687ms duo-package component-object@0.0.3: fetching +2ms duo-package yields-gravy@0.2.0: fetching +1ms duo-cache lookup component-assert@0.4.0 +0ms duo-cache component-assert@0.4.0 -> /var/folders/b8/x3zvfsw576x8frvcx_5w30_80000gn/T/duo/component-assert@0.4.0 +0ms duo-cache lookup component-object@0.0.3 +0ms duo-cache component-object@0.0.3 -> /var/folders/b8/x3zvfsw576x8frvcx_5w30_80000gn/T/duo/component-object@0.0.3 +0ms duo-cache lookup yields-gravy@0.2.0 +9ms duo-cache yields-gravy@0.2.0 -> /var/folders/b8/x3zvfsw576x8frvcx_5w30_80000gn/T/duo/yields-gravy@0.2.0 +0ms
error : Error: component-assert@0.4.0: incorrect header check
at Gunzip.error
(/Users/enriko/work/iv/analytics.js-integrations/node_modules/duo/node_modules/duo-package/index.js:466:12) at Gunzip.EventEmitter.emit (events.js:129:20) at Zlib._binding.onerror (zlib.js:364:10)
make: *\ [build/build.js] Error 1
On Thu, Jul 3, 2014 at 6:26 PM, amir abu shareb notifications@github.com wrote:
hey @enriko https://github.com/enriko!
i tried to reproduce this but couldn't, can you try the following steps?
λ analytics.js-integrations (master): node -v
v0.11.13 λ analytics.js-integrations (master): npm -v 1.4.9 λ analytics.js-integrations (master): npm cache clean λ analytics.js-integrations (master): make clean λ analytics.js-integrations (master): make test
if that doesn't work can you run uname and DEBUG=duo* make clean test and paste the output ?
cheers.
— Reply to this email directly or view it on GitHub https://github.com/segmentio/analytics.js-integrations/issues/329#issuecomment-48001028 .
Hey @enriko, I was running into this issue too. This is what ended up working for me:
$ cd analytics.js-integrations
$ rm -rf $TMPDIR/duo components build node_modules
$ sudo npm cache clean
$ sudo npm install -g duo
$ sudo npm install
$ make
Basically, just removing all folders to start from a clean slate, reinstalling duo globally, and then reinstalling the node_modules which has a local duo. It seems like it might have been a caching issue.
I had to use sudo
before those commands just because of my npm setup, but if you normally run npm install
and such without sudo
, then you can try that.
Also, if that $TMPDIR
variable doesn't work for you, you can get the temp directory like this as well:
node -e "console.log(require('os').tmpdir())"
Then just plug that in to the first command. Let me know if it works for you.
@lancejpollard After following your steps, I'm getting another error message on the 'make' step.
$ make
error : Error: component-object@0.0.3: incorrect header check
at Gunzip.error (/Users/enriko/work/iv/analytics.js-integrations/node_modules/duo/node_modules/duo-package/index.js:466:12)
at Gunzip.EventEmitter.emit (events.js:129:20)
at Zlib._binding.onerror (zlib.js:364:10)
make: *\ [build/build.js] Error 1
@enriko
can you can into $TMPDIR/duo
you should see the component-object@0.0.3.tar.gz
then try to untar it manually like tar xvzf component-object@0.0.3.tar.tgz
.
if you can't untar it manually:
$ rm -rf $TMPDIR/duo
$ cd analytics.js-integrations
$ make clean && npm cache clean && make
if the above still doesn't help can you do npm ls
and paste it here :/ ?
@yields that doesn't help.
$ npm ls integrations@ /Users/enriko/work/iv/analytics.js-integrations ├─┬ duo@0.4.1 │ ├── archy@0.0.2 │ ├─┬ array@0.4.3 │ │ ├── emitter-component@1.1.1 │ │ └─┬ to-function@1.2.1 │ │ └── props-component@1.0.3 │ ├── bytes@1.0.0 │ ├─┬ clone-component@0.2.2 │ │ └── component-type@1.0.0 │ ├── co@3.0.6 │ ├── co-exists@0.0.1 │ ├─┬ co-fs@1.2.0 │ │ ├─┬ co-from-stream@0.0.0 │ │ │ └── co-read@0.0.1 │ │ └── thunkify@0.0.1 │ ├─┬ co-parallel@1.0.0 │ │ └── co-thread@0.0.1 │ ├── commander@2.2.0 │ ├── debug@0.8.1 │ ├─┬ duo-pack@1.0.1 │ │ └─┬ combine-source-map@0.3.0 │ │ ├── convert-source-map@0.3.4 │ │ ├── inline-source-map@0.3.0 │ │ └─┬ source-map@0.1.34 │ │ └── amdefine@0.1.0 │ ├─┬ duo-package@0.2.10 │ │ ├─┬ co-req@0.0.4 │ │ │ └─┬ hyperdirect@0.0.0 │ │ │ ├─┬ hyperquest@0.1.8 │ │ │ │ ├── duplexer@0.1.1 │ │ │ │ └── through@2.2.7 │ │ │ └── through@2.3.4 │ │ ├─┬ duo-cache@1.1.2 │ │ │ ├── rimraf@2.2.8 │ │ │ └── thunkify@2.1.2 │ │ ├─┬ enstore@0.0.2 │ │ │ ├── monotonic-timestamp@0.0.8 │ │ │ └── through@2.2.7 │ │ ├─┬ gh-resolve@2.0.2 │ │ │ └─┬ debug@1.0.2 │ │ │ └── ms@0.6.2 │ │ ├─┬ node-netrc@0.0.1 │ │ │ └── netrc@0.1.3 │ │ ├─┬ request@2.37.0 │ │ │ ├── aws-sign2@0.5.0 │ │ │ ├── forever-agent@0.5.2 │ │ │ ├─┬ form-data@0.1.4 │ │ │ │ ├── async@0.9.0 │ │ │ │ ├─┬ combined-stream@0.0.5 │ │ │ │ │ └── delayed-stream@0.0.5 │ │ │ │ └── mime@1.2.11 │ │ │ ├─┬ hawk@1.1.1 │ │ │ │ ├── boom@0.4.2 │ │ │ │ ├── cryptiles@0.2.2 │ │ │ │ ├── hoek@0.9.1 │ │ │ │ └── sntp@0.2.4 │ │ │ ├─┬ http-signature@0.10.0 │ │ │ │ ├── asn1@0.1.11 │ │ │ │ ├── assert-plus@0.1.2 │ │ │ │ └── ctype@0.5.2 │ │ │ ├── json-stringify-safe@5.0.0 │ │ │ ├── mime-types@1.0.1 │ │ │ ├── node-uuid@1.4.1 │ │ │ ├── oauth-sign@0.3.0 │ │ │ ├── qs@0.6.6 │ │ │ ├─┬ tough-cookie@0.12.1 │ │ │ │ └── punycode@1.3.0 │ │ │ └── tunnel-agent@0.4.0 │ │ ├── semver@2.3.1 │ │ ├─┬ tar@0.1.20 │ │ │ ├── block-stream@0.0.7 │ │ │ ├─┬ fstream@0.1.28 │ │ │ │ ├── graceful-fs@3.0.2 │ │ │ │ ├── mkdirp@0.3.5 │ │ │ │ └── rimraf@2.2.8 │ │ │ └── inherits@2.0.1 │ │ └── thunkify@0.0.1 │ ├─┬ duo-string-to-js@0.0.2 │ │ └── string-to-js@0.0.1 │ ├─┬ duo-test@0.2.1 │ │ ├── buffer-events@0.0.2 │ │ ├── co-exec@1.1.0 │ │ ├─┬ debug@1.0.2 │ │ │ └── ms@0.6.2 │ │ ├─┬ koa@0.8.1 │ │ │ ├─┬ accepts@1.0.7 │ │ │ │ └── negotiator@0.4.7 │ │ │ ├─┬ cookies@0.4.1 │ │ │ │ └── keygrip@1.0.1 │ │ │ ├── delegates@0.0.3 │ │ │ ├── dethroy@1.0.1 │ │ │ ├── error-inject@1.0.0 │ │ │ ├── escape-html@1.0.1 │ │ │ ├─┬ finished@1.2.2 │ │ │ │ └── ee-first@1.0.3 │ │ │ ├── fresh@0.2.2 │ │ │ ├── koa-compose@2.3.0 │ │ │ ├── koa-is-json@1.0.0 │ │ │ ├── mime-types@1.0.1 │ │ │ ├── only@0.0.2 │ │ │ ├── statuses@1.0.3 │ │ │ ├─┬ type-is@1.3.2 │ │ │ │ └── media-typer@0.2.0 │ │ │ └── vary@0.1.0 │ │ ├─┬ koa-common@1.2.0 │ │ │ ├─┬ koa-compress@1.0.7 │ │ │ │ ├── compressible@1.1.0 │ │ │ │ ├── koa-is-json@1.0.0 │ │ │ │ └── statuses@1.0.3 │ │ │ ├── koa-conditional-get@1.0.2 │ │ │ ├─┬ koa-etag@1.2.5 │ │ │ │ └── buffer-crc32@0.2.1 │ │ │ ├── koa-favicon@1.0.1 │ │ │ ├─┬ koa-logger@1.2.2 │ │ │ │ ├── humanize-number@0.0.2 │ │ │ │ └── passthrough-counter@0.0.1 │ │ │ ├─┬ koa-mount@1.2.5 │ │ │ │ └── koa-compose@2.3.0 │ │ │ ├─┬ koa-ratelimit@1.0.3 │ │ │ │ ├── debug@0.7.4 │ │ │ │ ├── ms@0.6.2 │ │ │ │ ├── ratelimiter@1.0.2 │ │ │ │ └── thunkify@0.0.1 │ │ │ ├── koa-response-time@1.0.2 │ │ │ ├─┬ koa-rewrite@1.1.0 │ │ │ │ └── path-to-regexp@0.0.2 │ │ │ └── koa-session@2.0.0 │ │ ├─┬ koa-route@1.1.4 │ │ │ ├── methods@0.1.0 │ │ │ └── path-to-regexp@0.1.3 │ │ ├─┬ koa-static@1.4.5 │ │ │ └─┬ koa-send@1.2.3 │ │ │ └── finished@1.1.4 │ │ ├─┬ localtunnel@1.3.0 │ │ │ ├── debug@0.7.4 │ │ │ ├─┬ optimist@0.3.4 │ │ │ │ └── wordwrap@0.0.2 │ │ │ └─┬ request@2.11.4 │ │ │ ├─┬ form-data@0.0.3 │ │ │ │ ├── async@0.1.9 │ │ │ │ └─┬ combined-stream@0.0.3 │ │ │ │ └── delayed-stream@0.0.5 │ │ │ └── mime@1.2.7 │ │ ├─┬ mocha@1.20.1 │ │ │ ├── commander@2.0.0 │ │ │ ├── diff@1.0.7 │ │ │ ├─┬ glob@3.2.3 │ │ │ │ ├── graceful-fs@2.0.3 │ │ │ │ ├── inherits@2.0.1 │ │ │ │ └─┬ minimatch@0.2.14 │ │ │ │ ├── lru-cache@2.5.0 │ │ │ │ └── sigmund@1.0.0 │ │ │ ├── growl@1.7.0 │ │ │ ├─┬ jade@0.26.3 │ │ │ │ ├── commander@0.6.1 │ │ │ │ └── mkdirp@0.3.0 │ │ │ └── mkdirp@0.3.5 │ │ ├── open@0.0.5 │ │ ├─┬ queue-component@1.0.6 (git://github.com/component/queue.git#23dbce0f19a714b020b4fc52ed07ac0365c9b449) │ │ │ ├── component-bind@1.0.0 │ │ │ └── component-emitter@1.1.2 │ │ ├─┬ to-pascal-case@0.0.2 │ │ │ └─┬ to-space-case@0.1.2 │ │ │ └── to-no-case@0.1.1 │ │ ├─┬ wd@0.3.3 │ │ │ ├─┬ archiver@0.10.1 │ │ │ │ ├── buffer-crc32@0.2.3 │ │ │ │ ├─┬ file-utils@0.2.0 │ │ │ │ │ ├── findup-sync@0.1.3 │ │ │ │ │ ├─┬ glob@3.2.11 │ │ │ │ │ │ ├── inherits@2.0.1 │ │ │ │ │ │ └─┬ minimatch@0.3.0 │ │ │ │ │ │ ├── lru-cache@2.5.0 │ │ │ │ │ │ └── sigmund@1.0.0 │ │ │ │ │ ├── iconv-lite@0.2.11 │ │ │ │ │ ├── isbinaryfile@2.0.1 │ │ │ │ │ ├─┬ minimatch@0.2.14 │ │ │ │ │ │ ├── lru-cache@2.5.0 │ │ │ │ │ │ └── sigmund@1.0.0 │ │ │ │ │ └── rimraf@2.2.8 │ │ │ │ ├── lazystream@0.1.0 │ │ │ │ ├─┬ readable-stream@1.0.27-1 │ │ │ │ │ ├── core-util-is@1.0.1 │ │ │ │ │ ├── inherits@2.0.1 │ │ │ │ │ ├── isarray@0.0.1 │ │ │ │ │ └── string_decoder@0.10.25-1 │ │ │ │ ├─┬ tar-stream@0.4.4 │ │ │ │ │ ├── bl@0.8.2 │ │ │ │ │ ├─┬ end-of-stream@0.1.5 │ │ │ │ │ │ └── once@1.3.0 │ │ │ │ │ └── xtend@3.0.0 │ │ │ │ └─┬ zip-stream@0.3.6 │ │ │ │ ├── crc32-stream@0.2.0 │ │ │ │ └── deflate-crc32-stream@0.1.1 │ │ │ ├── async@0.9.0 │ │ │ ├── lodash@2.4.1 │ │ │ ├── q@1.0.1 │ │ │ ├─┬ request@2.36.0 │ │ │ │ ├── aws-sign2@0.5.0 │ │ │ │ ├── forever-agent@0.5.2 │ │ │ │ ├─┬ form-data@0.1.4 │ │ │ │ │ └─┬ combined-stream@0.0.5 │ │ │ │ │ └── delayed-stream@0.0.5 │ │ │ │ ├─┬ hawk@1.0.0 │ │ │ │ │ ├── boom@0.4.2 │ │ │ │ │ ├── cryptiles@0.2.2 │ │ │ │ │ ├── hoek@0.9.1 │ │ │ │ │ └── sntp@0.2.4 │ │ │ │ ├─┬ http-signature@0.10.0 │ │ │ │ │ ├── asn1@0.1.11 │ │ │ │ │ ├── assert-plus@0.1.2 │ │ │ │ │ └── ctype@0.5.2 │ │ │ │ ├── json-stringify-safe@5.0.0 │ │ │ │ ├── mime@1.2.11 │ │ │ │ ├── node-uuid@1.4.1 │ │ │ │ ├── oauth-sign@0.3.0 │ │ │ │ ├── qs@0.6.6 │ │ │ │ ├─┬ tough-cookie@0.12.1 │ │ │ │ │ └── punycode@1.3.0 │ │ │ │ └── tunnel-agent@0.4.0 │ │ │ ├── underscore.string@2.3.3 │ │ │ └── vargs@0.1.0 │ │ └── wd-browser@0.1.1 │ ├── extend.js@0.0.1 │ ├─┬ file-deps@0.0.5 │ │ └── mini-tokenizer@0.1.2 │ ├─┬ max-component@1.0.0 │ │ └─┬ to-function@2.0.5 │ │ ├── component-props@1.1.1 │ │ └─┬ remove-try-require@0.0.0 │ │ ├── ast-parents@0.0.1 │ │ ├─┬ ast-transform@0.0.0 │ │ │ ├─┬ escodegen@1.2.0 │ │ │ │ ├── estraverse@1.5.1 │ │ │ │ ├── esutils@1.0.0 │ │ │ │ └─┬ source-map@0.1.34 │ │ │ │ └── amdefine@0.1.0 │ │ │ ├── esprima@1.0.4 │ │ │ └── through@2.3.4 │ │ └─┬ replace-method@0.0.0 │ │ └─┬ recast@0.5.26 │ │ ├── ast-types@0.3.38 │ │ ├── cls@0.1.5 │ │ ├── esprima@1.1.0-dev-harmony (git://github.com/ariya/esprima.git#2bb17ef9a45c88e82d72c2c61b7b7af93caef028) │ │ ├── private@0.1.5 │ │ └─┬ source-map@0.1.32 │ │ └── amdefine@0.1.0 │ ├─┬ mkdirp@0.5.0 │ │ └── minimist@0.0.8 │ ├── stream-log@0.1.0 │ ├── thunkify@2.1.2 │ ├── v8-argv@0.2.0 │ └── win-fork@1.1.1 ├─┬ express@3.1.2 │ ├── buffer-crc32@0.2.3 │ ├── commander@0.6.1 │ ├─┬ connect@2.7.5 │ │ ├── buffer-crc32@0.1.1 │ │ ├── bytes@0.2.0 │ │ ├── formidable@1.0.11 │ │ ├── pause@0.0.1 │ │ └── qs@0.5.1 │ ├── cookie@0.0.5 │ ├── cookie-signature@1.0.0 │ ├─┬ debug@1.0.2 │ │ └── ms@0.6.2 │ ├── fresh@0.1.0 │ ├── methods@0.0.1 │ ├── mkdirp@0.3.5 │ ├── range-parser@0.0.4 │ └─┬ send@0.1.0 │ └── mime@1.2.6 ├─┬ jscs@1.5.8 │ ├── colors@0.6.2 │ ├── commander@2.2.0 │ ├── esprima@1.2.2 │ ├─┬ glob@4.0.3 │ │ ├── graceful-fs@3.0.2 │ │ ├── inherits@2.0.1 │ │ └── once@1.3.0 │ ├─┬ minimatch@0.3.0 │ │ ├── lru-cache@2.5.0 │ │ └── sigmund@1.0.0 │ ├── strip-json-comments@0.1.3 │ ├── vow@0.4.4 │ ├─┬ vow-fs@0.3.2 │ │ ├─┬ glob@3.2.8 │ │ │ ├── inherits@2.0.1 │ │ │ └─┬ minimatch@0.2.14 │ │ │ ├── lru-cache@2.5.0 │ │ │ └── sigmund@1.0.0 │ │ ├── node-uuid@1.4.0 │ │ └── vow-queue@0.3.1 │ └─┬ xmlbuilder@2.2.1 │ └── lodash-node@2.4.1 ├─┬ mocha@1.18.2 │ ├── commander@2.0.0 │ ├─┬ debug@1.0.2 │ │ └── ms@0.6.2 │ ├── diff@1.0.7 │ ├─┬ glob@3.2.3 │ │ ├── graceful-fs@2.0.3 │ │ ├── inherits@2.0.1 │ │ └─┬ minimatch@0.2.14 │ │ ├── lru-cache@2.5.0 │ │ └── sigmund@1.0.0 │ ├── growl@1.7.0 │ ├─┬ jade@0.26.3 │ │ ├── commander@0.6.1 │ │ └── mkdirp@0.3.0 │ └── mkdirp@0.3.5 ├─┬ mocha-phantomjs@3.1.6 │ ├─┬ commander@1.2.0 │ │ └── keypress@0.1.0 │ ├─┬ mocha@1.13.0 │ │ ├── commander@0.6.1 │ │ ├─┬ debug@1.0.2 │ │ │ └── ms@0.6.2 │ │ ├── diff@1.0.7 │ │ ├─┬ glob@3.2.3 │ │ │ ├── graceful-fs@2.0.3 │ │ │ ├── inherits@2.0.1 │ │ │ └─┬ minimatch@0.2.14 │ │ │ ├── lru-cache@2.5.0 │ │ │ └── sigmund@1.0.0 │ │ ├── growl@1.7.0 │ │ ├─┬ jade@0.26.3 │ │ │ └── mkdirp@0.3.0 │ │ └── mkdirp@0.3.5 │ └── which@1.0.5 ├─┬ phantomjs@1.9.7-12 │ ├── adm-zip@0.2.1 │ ├── kew@0.1.7 │ ├── mkdirp@0.3.5 │ ├── ncp@0.4.2 │ ├─┬ npmconf@0.0.24 │ │ ├─┬ config-chain@1.1.8 │ │ │ └── proto-list@1.2.3 │ │ ├── inherits@1.0.0 │ │ ├── ini@1.1.0 │ │ ├─┬ nopt@2.2.1 │ │ │ └── abbrev@1.0.5 │ │ ├── once@1.1.1 │ │ ├── osenv@0.0.3 │ │ └── semver@1.1.4 │ ├── progress@1.1.7 │ ├─┬ request@2.36.0 │ │ ├── aws-sign2@0.5.0 │ │ ├── forever-agent@0.5.2 │ │ ├─┬ form-data@0.1.4 │ │ │ ├── async@0.9.0 │ │ │ └─┬ combined-stream@0.0.5 │ │ │ └── delayed-stream@0.0.5 │ │ ├─┬ hawk@1.0.0 │ │ │ ├── boom@0.4.2 │ │ │ ├── cryptiles@0.2.2 │ │ │ ├── hoek@0.9.1 │ │ │ └── sntp@0.2.4 │ │ ├─┬ http-signature@0.10.0 │ │ │ ├── asn1@0.1.11 │ │ │ ├── assert-plus@0.1.2 │ │ │ └── ctype@0.5.2 │ │ ├── json-stringify-safe@5.0.0 │ │ ├── mime@1.2.11 │ │ ├── node-uuid@1.4.1 │ │ ├── oauth-sign@0.3.0 │ │ ├── qs@0.6.6 │ │ ├─┬ tough-cookie@0.12.1 │ │ │ └── punycode@1.3.0 │ │ └── tunnel-agent@0.4.0 │ ├─┬ request-progress@0.3.1 │ │ └── throttleit@0.0.2 │ ├── rimraf@2.2.8 │ └── which@1.0.5 ├─┬ uglify-js@2.4.14 │ ├── async@0.2.10 │ ├─┬ optimist@0.3.7 │ │ └── wordwrap@0.0.2 │ ├─┬ source-map@0.1.34 │ │ └── amdefine@0.1.0 │ └── uglify-to-browserify@1.0.2 └── underscore@1.4.4
these 3 files in $TMPDIR/duo don't seem to be valid archive files: component-assert@0.4.0.tar.gz component-object@0.0.3.tar.gz yields-gravy@0.2.0.tar.gz
@enriko
did you remove $TMPDIR/duo
before trying to install ?
and make clean
?
i can't reproduce this >.< haha
yeah just checking to make sure to rm -rf $TMPDIR/duo
@yields @lancejpollard yes i did remove $TMPDIR/duo before trying to install. It refetched those same (bad) files again.
Yes and I did make clean too.
@enriko is node -v
== v0.11.13
?
@yields $ node -v v0.11.13
@enriko hmm, maybe try running those commands with/without sudo (the opposite of whatever you tried the first time)?
$ cd analytics.js-integrations
$ rm -rf $TMPDIR/duo components build node_modules
$ npm cache clean
$ npm install -g duo
$ npm install
$ make
@lancejpollard tried that already (with/without sudo)
@enriko hmm, while we're trying to figure out a way to reproduce this, maybe try removing most of the dependencies in component.json, running those commands:
$ rm -rf $TMPDIR/duo components build node_modules
$ npm cache clean
$ npm install -g duo
$ npm install
$ make
and see if it succeeds, and then progressively add dependencies back in chunks until it fails. maybe it can be narrowed down to a specific dependency that is causing the problem. you could probably even just run these at first, so you don't have to reinstall the node_modules every time:
$ rm -rf $TMPDIR/duo components build
$ make
@enriko just to get a better picture of what's happening, so every time you run this:
$ rm -rf $TMPDIR/duo components build
$ make
and then you view the files in
$TMPDIR/duo
they don't seem to be valid archive files? This is what i'm getting atm:
$ tar -zxvf $TMPDIR/duo/component-object@0.0.3.tar.gz
x component-object-2d99cd0/
x component-object-2d99cd0/.gitignore
x component-object-2d99cd0/Makefile
x component-object-2d99cd0/Readme.md
x component-object-2d99cd0/component.json
x component-object-2d99cd0/index.js
x component-object-2d99cd0/package.json
x component-object-2d99cd0/test/
x component-object-2d99cd0/test/object.js
@enriko alright one other thing you could try (getting into the details a bit) is to comment out these lines in node_modules/duo/node_modules/duo-package/index.js
:
https://github.com/component/duo-package/blob/master/index.js#L342-L344
Then run:
$ rm -rf $TMPDIR/duo components build
$ make
Just make sure not to remove the node_modules folder in that case, so the commenting-out takes effect.
Another note, not sure if this helps @yields debug, but I get a similar error like this:
$ rm $TMPDIR/duo/component-object@0.0.3.tar.gz
$ touch $TMPDIR/duo/component-object@0.0.3.tar.gz
$ make
installed : component-object@0.0.3
installed : yields-gravy@0.2.0
installed : component-assert@0.4.0
error : Error: ENOENT, stat '/Users/lancejpollard/Desktop/analytics.js-integrations/components/component-object@0.0.3/index.js'
at Error (native)
so it looks like it's just being written incorrectly, not sure how that could happen. could it be happening b/c of sometimes github might not respond? not sure
Another note, not sure if this helps @yields debug, but I get a similar error like this:
yeah, that error is correct because you added a fake duo/component-object@0.0.3.tar.gz
so duo tried to extract it instead of fetching it from github (which is totally correct imho).
duo cache has $TMPDIR/duo/.repos.json
that contain the list of cached repos, so it thinks that component-object@0.0.3
is cached and correct, removing $TMPDIR/duo
in case of bad cache will solve it i think.
@lancejpollard @yields Correct. Every time I clean up $TMPDIR/duo, it will be repopulated with invalid archive files.
I'm actually not able to see @lancejpollard github link: https://github.com/component/duo-package/blob/master/index.js#L342-L344 (it gave me 404 - which is usually a sign that I'm not authorized to see it).
So maybe that's where the problem is... I'm not able to fetch those duo files from github using my github credentials. How do I get access to it?
oh you can access the file locally with: vim node_modules/duo/node_modules/duo-package/index.js
?
and then comment 342-344 out ?
i have no idea how this happens on your machine and not ours haha
@yields what's the easiest way to force 'make'? After commenting line 342-344, I can't get 'make' to run again without invoking 'make clean', which defeats the whole purpose.
$ make make: Nothing to be done for `default'.
Out of curiosity - where are those 'duo' files downloaded from?
make -B I think should do it
-amir
On 8 ביול 2014, at 03:27, Enriko Aryanto notifications@github.com wrote:
@yields what's the easiest way to force 'make'? After commenting line 342-344, I can't get 'make' to run again without invoking 'make clean', which defeats the whole purpose.
$ make make: Nothing to be done for `default'.
Out of curiosity - where are those 'duo' files downloaded from?
— Reply to this email directly or view it on GitHub.
@lancejpollard @yields ok this is what I got after commenting line 342-344:
$ make -B npm WARN package.json duo@0.4.1 No repository field.
error : Error: yields-gravy@0.2.0: incorrect header check
at Gunzip.error (/Users/enriko/work/iv/analytics.js-integrations/node_modules/duo/node_modules/duo-package/index.js:486:12)
at Gunzip.EventEmitter.emit (events.js:129:20)
at Zlib._binding.onerror (zlib.js:364:10)
make: *\ [build/build.js] Error 1
awesome can you try removing the cache again before make -B ?
-amir
On 8 ביול 2014, at 03:31, Enriko Aryanto notifications@github.com wrote:
@lancejpollard @yields ok this is what I got after commenting line 342-344:
$ make -B npm WARN package.json duo@0.4.1 No repository field.
error : Error: yields-gravy@0.2.0: incorrect header check
at Gunzip.error (/Users/enriko/work/iv/analytics.js-integrations/node_modules/duo/node_modules/duo-package/index.js:486:12) at Gunzip.EventEmitter.emit (events.js:129:20) at Zlib._binding.onerror (zlib.js:364:10) make: *\ [build/build.js] Error 1
— Reply to this email directly or view it on GitHub.
@yields same error
my $TMPDIR/duo is now empty
@enriko
ok, looks like the problem is with the cache, so you need to remove caching for now.
here are the lines you should comment out, then you don't even have to remove the cache
just try rm -rf components build && make test
326 if (cached = yield cache.lookup(slug)) {
327 yield extract(cached, dest, slug);
328 this.emit('fetch');
329 this.fetched = true;
330 this.debug('fetched from cache');
331 return this;
332 }
342 if (semver.valid(ref)) {
343 yield cache.add(slug, store.createReadStream());
344 }
@yields same error
error : Error: component-assert@0.4.0: incorrect header check
at Gunzip.error (/Users/enriko/work/iv/analytics.js-integrations/node_modules/duo/node_modules/duo-package/index.js:486:12)
at Gunzip.EventEmitter.emit (events.js:129:20)
at Zlib._binding.onerror (zlib.js:364:10)
make: *\ [build/build.js] Error 1
@yields I don't think the problem is with the cache. Where are those 'duo' files downloaded from? It looks to me that those are downloaded from a private github repo (that's why I got a 404 from that github page).
i have a pull request open on duo-package
i'll let you know once we merge and release it.
the pull-request simply adds better error messages for when github doesn't respond with 2xx
so we can see if github is responding to one of those requests with content-type != application/x-gzip
(i'm pretty sure that's the problem).
really sorry about that, the problem is that i & @lancejpollard & @ianstormtaylor couldn't reproduce it locally, so we have no idea what the problem is + it doesn't help that duo doesn't have good error messages (which my pull request solves).
i can reproduce, this is my cache:
cat /var/folders/m5/n05wg0h55kg5k3zsx2hzgq600000gn/T/duo/component-object\@0.0.3.tar.gz
{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
My netrc has entries for raw.github.com and api.github.com. Looks like I was missing the creds for raw.githubusercontent.com, I added those and now get ETIMEDOUTs. I also get them with component installs, so looks like that service is having problems.
Does that make sense? Is there anything else I should do to help?
@juliangruber i have credentials for raw.github.com, api.github.com and raw.githubusercontent.com and still got the same error.
@yields make sure to let me know once you merge & release your pull request on duo-package.
@enriko could you paste your output from this?
cat $TMPDIR/duo/component-object\@0.0.3.tar.gz
just want to make sure it's the same
@lancejpollard
cat /var/folders/b8/x3zvfsw576x8frvcx_5w30_80000gn/T/duo/component-object\@0.0.3.tar.gz
{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
@enriko
it looks like you have bad creds ? can you try creating a new token
and changing all password <token>
with this new token in ~/.netrc
?
BINGO! This works now. Thanks everyone.
Running 'make' gave me this error:
make: *\ [build/build.js] Error 1