isaacs/npm — Issue #1722: OS X, ENOENT, No such file or directory '/usr/local/lib/node_modules/npm'
Author: gotofritz
Created: 2011-11-16 14:57:52+00:00
State: open

Hi. I tried installing latest version of node, then npm, then unistalled node with:

`rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1`

Then reinstalled node v0.4.9, then uninstalled npm (npm uninstall npm), then reinstalled it. It said
npm@1.0.105 /usr/local/lib/node_modules/npm
It worked

Now I am trying to run npm link from /usr/local/lib/node_modules/npm

sudo npm link
Password:
npm ERR! Error: ENOENT, No such file or directory '/usr/local/lib/node_modules/npm'
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "link"
npm ERR! Error: No such file or directory
npm ERR! at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:194:21)
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/link.js:115:14)
npm ERR! at /usr/local/lib/node_modules/npm/lib/link.js:122:24
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:16:22
npm ERR! at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "link"
npm not ok