diff options
author | isaacs <i@izs.me> | 2010-08-24 10:16:15 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-24 10:16:15 +0400 |
commit | 3e58d4a0d6a19cce77e1c544e9aefeaad08f9930 (patch) | |
tree | d57bb1096481b75d25f42e308a1ccee90aec16c2 | |
parent | 177bb5f4b4d2483101ebf7ef7d43754f703236a3 (diff) |
log better
-rwxr-xr-x | cli.js | 5 | ||||
-rw-r--r-- | lib/uninstall.js | 8 |
2 files changed, 6 insertions, 7 deletions
@@ -61,12 +61,11 @@ var itWorked = false if (!command && !conf.help) { if (!printVersion) { // npm.commands.help([arglist.join(" ")]) - if (arglist.length) log(arglist, "unknown command") + if (arglist.length) log.error(arglist, "unknown command") sys.error( "What do you want me to do?\n\n" + "Usage:\n" + " npm [flags] <command> [args]\n" - + "Check 'man npm' or 'man npm-help' for more information\n\n" - + "This is supposed to happen. " + + "Check 'npm help' for more information\n\n" ) process.exit(1) } else itWorked = true diff --git a/lib/uninstall.js b/lib/uninstall.js index 6a199f370..8a8bb2a39 100644 --- a/lib/uninstall.js +++ b/lib/uninstall.js @@ -122,15 +122,15 @@ function secondPart (args, cb) { npm.commands.deactivate([name], log.er(cb, "Failed to deactivate")) } - , [ log, "remove links", "uninstall "+arg._id] + , [ log.verbose, "remove links", "uninstall "+arg._id] , [ removeDependentLinks, arg ] , [ removeLinkedDeps, arg ] - , [ log, "remove bins", "uninstall "+arg._id] + , [ log.verbose, "remove bins", "uninstall "+arg._id] , [ removeBins, arg ] - , [ log, "remove public modules", "uninstall "+arg._id] + , [ log.verbose, "remove public modules", "uninstall "+arg._id] , [ removePublic, arg ] , [ lifecycle, arg, "postuninstall" ] - , [ log, "remove package dir", "uninstall "+arg._id] + , [ log.verbose, "remove package dir", "uninstall "+arg._id] , [ rm, path.join(npm.dir, arg.name, arg.version) ] , function (cb) { fs.readdir(path.join(npm.dir, arg.name), function (er, vers) { |