isaacs/npm — Issue #2226: Cannot install several modules, "Error: ENOENT, no such file or directory"
Author: viatropos
Created: 2012-03-03 23:02:22+00:00
State: open

I am not sure what to do here, do you how I can fix this?

The command line output for hook.io and forever are here (I'm pasting the hook.io output here as well):

- https://github.com/nodejitsu/forever/issues/254
- https://github.com/hookio/hook.io/issues/165

```
$ npm install hook.io
npm http GET https://registry.npmjs.org/hook.io
npm http 304 https://registry.npmjs.org/hook.io
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/nconf
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/prompt
npm http GET https://registry.npmjs.org/portfinder
npm http GET https://registry.npmjs.org/weak
npm http GET https://registry.npmjs.org/socket.io/0.8.6
npm http GET https://registry.npmjs.org/lazy
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/dnode-protocol
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/mdns
npm http GET https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/npm
npm http GET https://github.com/substack/socket.io-client/tarball/master
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/nconf
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/prompt
npm http 304 https://registry.npmjs.org/portfinder
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/socket.io/0.8.6
npm http 304 https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/lazy
npm http 304 https://registry.npmjs.org/dnode-protocol
npm http 304 https://registry.npmjs.org/jsonify
npm http 304 https://registry.npmjs.org/mdns
npm http 304 https://registry.npmjs.org/winston
npm http 304 https://registry.npmjs.org/npm
npm http 200 https://github.com/substack/socket.io-client/tarball/master
npm ERR! error installing colors@0.6.0-1
npm ERR! error installing prompt@0.1.12
npm ERR! error installing hook.io@0.8.7-1

npm ERR! Error: ENOENT, no such file or directory '/Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___optimist.npm/package/package.json'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "hook.io"
npm ERR! cwd /Users/viatropos/Desktop/lance
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.4
npm ERR! path /Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___optimist.npm/package/package.json
npm ERR! fstream_path /Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___optimist.npm/package/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___optimist.npm/package/package.json'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:204:26)

npm ERR! Error: ENOENT, no such file or directory '/Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___semver.npm/package/package.json'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "hook.io"
npm ERR! cwd /Users/viatropos/Desktop/lance
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.4
npm ERR! path /Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___semver.npm/package/package.json
npm ERR! fstream_path /Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___semver.npm/package/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/Users/viatropos/Desktop/lance/node_modules/hook.io/node_modules/___semver.npm/package/package.json'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:204:26)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/viatropos/Desktop/lance/npm-debug.log
npm not ok
```

Thanks for the help.