Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

npm fails installing qunit #427

Closed
afiore opened this Issue · 4 comments

2 participants

@afiore

Hi there, here's what npm spat out when I tried to install qunit.
Thanks,
A

npm info it worked if it ends with ok
npm info using npm@0.2.10
npm info using node@v0.3.2-pre
npm info fetch http://registry.npmjs.org/qunit/-/qunit-0.0.7.tgz
npm WARN Excess stuff in package tarball [ '._node-qunit', 'node-qunit' ]
npm ERR! Error installing qunit@0.0.7
npm ERR! Error: ENOTDIR, Not a directory '/tmp/npm-129156830566 /1291568306261-0.5297481599263847/contents/package/package.json'
npm ERR! Report this entire log at http://github.com/isaacs/npm/issues
npm ERR! or email it to npm-@googlegroups.com
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok

@isaacs
Owner

Please do the following and then post the output here if it fails:

rm -rf /tmp/npm-*
npm cache clean
npm update npm
npm install qunit --loglevel verbose
@afiore

humm, it failed once again with pretty much the same error.

$ npm install qunit --loglevel verbose
npm info it worked if it ends with ok
npm verb cli []
npm info using npm@0.2.11-4
npm info using node@v0.3.2-pre
npm verb config file /home/and/.npmrc
npm verb config file /usr/local/etc/npmrc
npm verb install [ 'qunit' ]
npm verb install [ 'qunit' ]
npm verb install pkglist [ 'qunit' ]
npm verb must install [ 'qunit' ]
npm verb install_ qunit
npm verb must install? [ [ 'qunit' ], true ]
npm verb GET qunit
npm verb get cb [ 200,
npm verb get cb   { vary: 'Accept',
npm verb get cb     server: 'CouchDB/1.0.1 (Erlang OTP/R13B)',
npm verb get cb     etag: '"ES1695N3FG2G6VC7HYWKY60L9"',
npm verb get cb     date: 'Tue, 07 Dec 2010 10:39:53 GMT',
npm verb get cb     'content-type': 'application/json',
npm verb get cb     'content-length': '5344' } ]
npm verb Supported versions [ 'qunit@0.0.3',
npm verb Supported versions   'qunit@0.0.4',
npm verb Supported versions   'qunit@0.0.5',
npm verb Supported versions   'qunit@0.0.6',
npm verb Supported versions   'qunit@0.0.7',
npm verb Supported versions   'qunit@0.0.8' ]
npm verb qunit tag latest
npm verb install_ qunit@0.0.8
npm verb must install? [ [ 'qunit', '0.0.8' ],
npm verb must install?   true ]
npm verb qunit@0.0.8 exact
npm verb GET qunit/0.0.8
npm verb get cb [ 200,
npm verb get cb   { vary: 'Accept',
npm verb get cb     server: 'CouchDB/1.0.1 (Erlang OTP/R13B)',
npm verb get cb     etag: '"ES1695N3FG2G6VC7HYWKY60L9"',
npm verb get cb     date: 'Tue, 07 Dec 2010 10:39:54 GMT',
npm verb get cb     'content-type': 'application/json',
npm verb get cb     'content-length': '765' } ]
npm verb addRemoteTarball [ 'http://registry.npmjs.org/qunit/-/qunit-0.0.8.tgz',
npm verb addRemoteTarball   undefined ]
npm info fetch http://registry.npmjs.org/qunit/-/qunit-0.0.8.tgz
npm verb fetch to /tmp/npm-1291718393836/1291718394514-0.4255863665603101/tmp.tgz
npm verb request headers { host: 'registry.npmjs.org' }
npm verb remote url http://registry.npmjs.org/qunit/-/qunit-0.0.8.tgz
npm verb content-length 1619150
npm verb downloaded 0%
npm verb downloaded 10%
npm verb downloaded 20%
npm verb downloaded 30%
npm verb downloaded 43%
npm verb downloaded 53%
npm verb downloaded 63%
npm verb downloaded 73%
npm verb downloaded 83%
npm verb downloaded 93%
npm verb fetched http://registry.npmjs.org/qunit/-/qunit-0.0.8.tgz - 1619150 bytes
npm verb success tar "-vxpf" "-" "-C" "/tmp/npm-1291718393836/1291718394514-0.4255863665603101/contents"
npm verb success gzip "--decompress" "--stdout" "/tmp/npm-1291718393836/1291718394514-0.4255863665603101/tmp.tgz"
npm ERR! couldn't read package.json in /tmp/npm-1291718393836/1291718394514-0.4255863665603101/contents/package
npm ERR! Error installing qunit@0.0.8
npm ERR! Error: ENOTDIR, Not a directory '/tmp/npm-1291718393836/1291718394514-0.4255863665603101/contents/package/package.json'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com>
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm verb exit [ 20, true ]
npm not ok
@isaacs
Owner

aha!! Found it.

Fixed on 395baa2. Just pushed fix to npm v0.2.11-5. npm update npm should get it.

This was a hard one to track down!!

@afiore

Well done!
btw, loving the new auto-completion feature!
Thanks

@bmeck bmeck referenced this issue from a commit in bmeck/npm
@isaacs isaacs Fix #427 Properly filter out garbage in tgz files.
</3 x-platform unix program dependence.
395baa2
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.