isaacs/npm — Issue #1620: Don't work with node v0.5.10 on Debian "lenny"
Author: amangion
Created: 2011-10-28 12:56:14+00:00
State: open

debian:/home/ksandr/npm# curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7147 100 7147 0 0 11965 0 --:--:-- --:--:-- --:--:-- 45234
tar=/bin/tar
version:
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Installing without make. This may fail.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.103.tgz
0.5.10
1.0.103
cleanup prefix=/usr/local

All clean!
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npm_g -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npm-g -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@1.0.103 /usr/local/lib/node_modules/npm
It worked

debian:/home/ksandr# npm search express
npm WARN Building the index for the first time, please be patient
npm ERR! Error: connect EINVAL
npm ERR! at errnoException (net.js:589:11)
npm ERR! at connect (net.js:473:18)
npm ERR! at net.js:531:9
npm ERR! at asyncCallback (dns.js:84:16)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:137:9)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.26-2-686
npm ERR! command "node" "/usr/local/bin/npm" "search" "express"
npm ERR! cwd /home/ksandr
npm ERR! node -v v0.5.10
npm ERR! npm -v 1.0.103
npm ERR! code EINVAL
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ksandr/npm-debug.log
npm not ok