Skip to content

Instantly share code, notes, and snippets.

@nickretallack
Created July 20, 2012 19:43
Show Gist options
  • Save nickretallack/3152807 to your computer and use it in GitHub Desktop.
Save nickretallack/3152807 to your computer and use it in GitHub Desktop.
npm fails to search
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! Error: ENOENT, open '/home/nick/.npm/-/all/.cache.json'
npm ERR! { [Error: ENOENT, open '/home/nick/.npm/-/all/.cache.json']
npm ERR! errno: 34,
npm ERR! code: 'ENOENT',
npm ERR! path: '/home/nick/.npm/-/all/.cache.json' }
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 3.2.0-26-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "search" "less"
npm ERR! cwd /home/nick
npm ERR! node -v v0.8.2
npm ERR! npm -v 1.1.36
npm ERR! path /home/nick/.npm/-/all/.cache.json
npm ERR! code ENOENT
npm ERR! message ENOENT, open '/home/nick/.npm/-/all/.cache.json'
npm ERR! errno 34
npm ERR! 34 errno
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/nick/npm-debug.log
npm ERR! not ok code 0
@bobbyfu
Copy link

bobbyfu commented Oct 17, 2012

nick, run as root user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment