isaacs/npm — Issue #2186: npm install watcher fails
Author: mbrocko
Created: 2012-02-22 17:57:08+00:00
State: open

Although the author suggests installing 'watcher' as a global package I do prefer installing it in a local node_modules folder. Unfortunately, the installation fails. Am I doing something wrong or is there any other problem?

Here is what I've already got in the local node_modules folder:

:~/bin$ npm list
/home/mar/bin
├── coffee-script@1.2.0
├── less@1.2.2
└─┬ watch-less@0.0.2
├─┬ optimist@0.2.8
│ └── wordwrap@0.0.2
└─┬ walk@2.1.1
└─┬ forEachAsync@2.1.1
└── sequence@2.1.1

And here is the error log:

:~/bin$ npm install watcher
npm http GET https://registry.npmjs.org/watcher
npm http 304 https://registry.npmjs.org/watcher
npm ERR! error installing watcher@0.0.4

npm ERR! Error: ENOENT, no such file or directory '/home/mar/bin/node_modules/watcher/bin/watcher'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 3.0.0-16-generic-pae
npm ERR! command "node" "/usr/bin/npm" "install" "watcher"
npm ERR! cwd /home/mar/bin
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.0-2
npm ERR! path /home/mar/bin/node_modules/watcher/bin/watcher
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/home/mar/bin/node_modules/watcher/bin/watcher'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/mar/bin/npm-debug.log
npm not ok

Thanks for any help.