Skip to content

Instantly share code, notes, and snippets.

@faddah
Created October 5, 2014 01:20
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 faddah/cb5318236d504ea55489 to your computer and use it in GitHub Desktop.
Save faddah/cb5318236d504ea55489 to your computer and use it in GitHub Desktop.
error on trying to do npm search
// this is on an acer C720P booting into Ubuntu Linux 14.04 LTS, i have node 0.10.32 installed and in use via nvm
//
// from the terminal error -
$ sudo npm search
[sudo] password for user:
Sorry, try again.
[sudo] password for user:
npm WARN Building the local index for the first time, please be patient
npm http GET https://registry.npmjs.org/-/all
npm http 200 https://registry.npmjs.org/-/all
npm ERR! RangeError: Invalid array length
npm ERR! at /usr/share/npm/node_modules/npm-registry-client/lib/get.js:87:15
npm ERR! at Array.forEach (native)
npm ERR! at /usr/share/npm/node_modules/npm-registry-client/lib/get.js:86:26
npm ERR! at cb (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:27:9)
npm ERR! at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:122:16)
npm ERR! at cb (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:158:9)
npm ERR! at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:303:12)
npm ERR! at Request.self.callback (/usr/lib/nodejs/request/index.js:148:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/index.js:896:14)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "search"
npm ERR! cwd /home/user
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type invalid_array_length
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/user/npm-debug.log
npm ERR! not ok code 0
// from /home/user/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'search' ]
2 info using npm@1.3.10
3 info using node@v0.10.25
4 warn Building the local index for the first time, please be patient
5 verbose url raw /-/all
6 verbose url resolving [ 'https://registry.npmjs.org/', './-/all' ]
7 verbose url resolved https://registry.npmjs.org/-/all
8 info trying registry request attempt 1 at 18:12:16
9 http GET https://registry.npmjs.org/-/all
10 http 200 https://registry.npmjs.org/-/all
11 error RangeError: Invalid array length
11 error at /usr/share/npm/node_modules/npm-registry-client/lib/get.js:87:15
11 error at Array.forEach (native)
11 error at /usr/share/npm/node_modules/npm-registry-client/lib/get.js:86:26
11 error at cb (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:27:9)
11 error at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:122:16)
11 error at cb (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:158:9)
11 error at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:303:12)
11 error at Request.self.callback (/usr/lib/nodejs/request/index.js:148:22)
11 error at Request.EventEmitter.emit (events.js:98:17)
11 error at Request.<anonymous> (/usr/lib/nodejs/request/index.js:896:14)
12 error If you need help, you may report this log at:
12 error <http://github.com/isaacs/npm/issues>
12 error or email it to:
12 error <npm-@googlegroups.com>
13 error System Linux 3.13.0-36-generic
14 error command "/usr/bin/nodejs" "/usr/bin/npm" "search"
15 error cwd /home/user
16 error node -v v0.10.25
17 error npm -v 1.3.10
18 error type invalid_array_length
19 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment