npm not working: must have callback error

I trying to use npm install or npm install packagename ( tried different packages ) and none are working.

I get the error message AssertionError: must have callback.

I was working in the past. I may have updated something.

my setup: Running Linux Centos on Vagrant. kernel 2.6.32 64bits. Node v0.10.29 npm 1.3.6

details:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/bin/npm', 'install', 'pg' ]
2 info using npm@1.3.6
3 info using node@v0.10.29
4 warn package.json HPA@ No repository field.
5 warn package.json HPA@ No README data
6 verbose readDependencies using package.json deps
7 verbose cache add [ 'pg@3.4.1', null ]
8 verbose cache add name=undefined spec="pg@3.4.1" args=["pg@3.4.1",null]
9 verbose parsed url { protocol: null,
9 verbose parsed url   slashes: null,
9 verbose parsed url   auth: null,
9 verbose parsed url   host: null,
9 verbose parsed url   port: null,
9 verbose parsed url   hostname: null,
9 verbose parsed url   hash: null,
9 verbose parsed url   search: null,
9 verbose parsed url   query: null,
9 verbose parsed url   pathname: 'pg@3.4.1',
9 verbose parsed url   path: 'pg@3.4.1',
9 verbose parsed url   href: 'pg@3.4.1' }
10 verbose cache add name="pg" spec="3.4.1" args=["pg","3.4.1"]
11 verbose parsed url { protocol: null,
11 verbose parsed url   slashes: null,
11 verbose parsed url   auth: null,
11 verbose parsed url   host: null,
11 verbose parsed url   port: null,
11 verbose parsed url   hostname: null,
11 verbose parsed url   hash: null,
11 verbose parsed url   search: null,
11 verbose parsed url   query: null,
11 verbose parsed url   pathname: '3.4.1',
11 verbose parsed url   path: '3.4.1',
11 verbose parsed url   href: '3.4.1' }
12 verbose addNamed [ 'pg', '3.4.1' ]
13 verbose addNamed [ '3.4.1', '3.4.1' ]
14 silly lockFile b34dd722-pg-3-4-1 pg@3.4.1
15 verbose lock pg@3.4.1 /root/.npm/b34dd722-pg-3-4-1.lock
16 error AssertionError: must have callback
16 error     at RegClient.get (/usr/lib/node_modules/npm-registry-client/lib/get.js:22:3)
16 error     at addNameVersion (/usr/lib/node_modules/npm/lib/cache.js:735:12)
16 error     at /usr/lib/node_modules/npm/lib/cache.js:604:5
16 error     at /usr/lib/node_modules/npm/lib/cache.js:1224:7
16 error     at cb (/usr/lib/node_modules/lockfile/lockfile.js:149:38)
16 error     at /usr/lib/node_modules/lockfile/lockfile.js:220:13
16 error     at Object.oncomplete (fs.js:107:15)
17 error If you need help, you may report this log at:
17 error     <http://github.com/isaacs/npm/issues>
17 error or email it to:
17 error     <npm-@googlegroups.com>
18 error System Linux 2.6.32-358.23.2.el6.x86_64
19 error command "node" "/usr/bin/npm" "install" "pg"
20 error cwd /var/www/projects/hpa22/hpa/nodejs
21 error node -v v0.10.29
22 error npm -v 1.3.6
23 verbose exit [ 1, true ]

Npm could just be experiencing some downtime/slowdown try using another mirror:

http://blog.modulus.io/npm-mirrors