Open kanzure opened 11 years ago
Oops, that wasn't the root problem. I was hanging out in stream-adventure/
when I was running that command. Here's a more specific complaint:
mkdir -p /tmp/whatever && cd /tmp/whatever
npmd
which gives me:
/usr/local/lib/node_modules/npmd/node_modules/npmd-link/node_modules/get-deps/node_modules/package/lib/package.js:54
throw new Error('package.json can not be located');
^
Error: package.json can not be located
at Function.package.discover (/usr/local/lib/node_modules/npmd/node_modules/npmd-link/node_modules/get-deps/node_modules/package/lib/package.js:54:13)
at package (/usr/local/lib/node_modules/npmd/node_modules/npmd-link/node_modules/get-deps/node_modules/package/lib/package.js:23:24)
at module.exports (/usr/local/lib/node_modules/npmd/node_modules/npmd-link/node_modules/get-deps/index.js:15:18)
at /usr/local/lib/node_modules/npmd/node_modules/npmd-link/index.js:187:14
at /usr/local/lib/node_modules/npmd/options.js:11:27
at execCommands (/usr/local/lib/node_modules/npmd/index.js:74:31)
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npmd/index.js:98:7)
at EventEmitter.emit (events.js:98:17)
at Socket.onConnect (/usr/local/lib/node_modules/npmd/node_modules/autonode/index.js:53:15)
at Socket.g (events.js:175:14)
I don't think this was a design choice.
yeah, this is a bug. should dump help info or something when you run with out args. mostly I've focused on installing.
the bug here was that some commands look for a local package.json, but I didn't have a sensible check if it's not there.
will fix
I just ran:
And now that it's synced (and still running in the background), I tried:
and consistently get: