Error on install: Cannot call method 'indexOf' of undefined #80

Closed
maeseele opened this Issue Mar 27, 2012 · 1 comment

Projects

None yet

2 participants

@maeseele

I get this error on "npm -g install nib":

npm http GET https://registry.npmjs.org/nib
npm http 304 https://registry.npmjs.org/nib
npm http GET https://registry.npmjs.org/nib/-/nib-0.3.2.tgz
npm http 200 https://registry.npmjs.org/nib/-/nib-0.3.2.tgz

npm ERR! TypeError: Cannot call method 'indexOf' of undefined
npm ERR! at FileReader.filter (/usr/local/lib/node_modules/npm/lib/utils/tar.js:115:49)
npm ERR! at Object.statCb as oncomplete

Debug:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', '-g', 'install', 'nib' ]
info using npm@1.1.12
info using node@v0.6.14
verbose config file /Users/peter/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose cache add [ 'nib', null ]
silly cache add: name, spec, args [ undefined, 'nib', [ 'nib', null ] ]
verbose parsed url { pathname: 'nib', path: 'nib', href: 'nib' }
verbose addNamed [ 'nib', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'nib', '', false ]
verbose raw, before any munging nib
verbose url resolving [ 'https://registry.npmjs.org/', './nib' ]
verbose url resolved https://registry.npmjs.org/nib
verbose etag "5BUZIQXV4VR2B5VDW8Z1UGZEB"
http GET https://registry.npmjs.org/nib
http 304 https://registry.npmjs.org/nib
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
silly get cb etag: '"5BUZIQXV4VR2B5VDW8Z1UGZEB"',
silly get cb date: 'Tue, 27 Mar 2012 13:35:55 GMT',
silly get cb 'content-length': '0' } ]
verbose etag nib from cache
silly name, range, hasData 2 [ 'nib', '', true ]
silly versions [ 'nib',
silly versions [ '0.0.1',
silly versions '0.0.2',
silly versions '0.0.3',
silly versions '0.0.4',
silly versions '0.0.5',
silly versions '0.0.6',
silly versions '0.0.7',
silly versions '0.0.8',
silly versions '0.1.0',
silly versions '0.2.0',
silly versions '0.3.0',
silly versions '0.3.1',
silly versions '0.3.2' ] ]
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8r-v83.6.6.24-darwin-x64-11.3.0',
verbose bin dist { shasum: 'f437324a9f93504397df146549bfa162d04dfa50',
verbose bin dist tarball: 'http://registry.npmjs.org/nib/-/nib-0.3.2.tgz' } ]
verbose addRemoteTarball [ 'https://registry.npmjs.org/nib/-/nib-0.3.2.tgz',
verbose addRemoteTarball 'f437324a9f93504397df146549bfa162d04dfa50' ]
verbose mkdir (expected) error ENOENT, stat '/var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309'
verbose mkdir (expected) error ENOENT, stat '/var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854'
verbose mkdir done: /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854 755
verbose fetch to /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/tmp.tgz
http GET https://registry.npmjs.org/nib/-/nib-0.3.2.tgz
http 200 https://registry.npmjs.org/nib/-/nib-0.3.2.tgz
silly updated sha bytes 40960
silly updated sha bytes 40960
silly updated sha bytes 40960
info shasum f437324a9f93504397df146549bfa162d04dfa50
info shasum /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/tmp.tgz
verbose mkdir (expected) error ENOENT, stat '/var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package'
verbose mkdir done: /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package
silly gunzTarPerm modes [ '755', '644' ]
verbose gunzed /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package
verbose caching /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package/package.json
verbose loadDefaults nib@0.3.2
verbose tarball contents [ 'package', 'tmp.tgz' ]
verbose from cache /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package/package.json
verbose pack /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package
verbose pack /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package /Users/peter/.npm/nib/0.3.2/package.tgz
silly makeList /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package
silly dir, dirLen [ '/var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package',
silly dir, dirLen 108 ]
verbose tarball /Users/peter/.npm/nib/0.3.2/package.tgz
verbose parent /var/folders/rr/cc644yy136721ft0nzmqmxsm0000gn/T/npm-1332855355309/1332855355309-0.4986961039248854/package
ERR! TypeError: Cannot call method 'indexOf' of undefined
ERR! at FileReader.filter (/usr/local/lib/node_modules/npm/lib/utils/tar.js:115:49)
ERR! at Object.statCb as oncomplete
ERR! You may report this log at:
ERR! http://github.com/isaacs/npm/issues
ERR! or email it to:
ERR! npm-@googlegroups.com
ERR!
ERR! System Darwin 11.3.0
ERR! command "node" "/usr/local/bin/npm" "-g" "install" "nib"
ERR! cwd /Users/peter/Code/jquery/read-more
ERR! node -v v0.6.14
ERR! npm -v 1.1.12
ERR! type non_object_property_call
ERR! arguments [ 'indexOf', undefined ]
ERR! message Cannot call method 'indexOf' of undefined
verbose exit [ 1, true ]

@slang800
Collaborator
slang800 commented Jul 3, 2013

this issue was opened like a year ago... so i'm gonna assume it has been resolved... please reopen if this is still happening.

@slang800 slang800 closed this Jul 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment