summaryrefslogtreecommitdiff
path: root/deps/npm/lib/unpublish.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/unpublish.js')
-rw-r--r--deps/npm/lib/unpublish.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/unpublish.js b/deps/npm/lib/unpublish.js
index c0056e776..0e48ab72d 100644
--- a/deps/npm/lib/unpublish.js
+++ b/deps/npm/lib/unpublish.js
@@ -56,7 +56,7 @@ function unpublish (args, cb) {
// read the package name and version out of that.
var cwdJson = path.join(process.cwd(), "package.json")
return readJson(cwdJson, function (er, data) {
- if (er && er.code !== "ENOENT") return cb(er)
+ if (er && er.code !== "ENOENT" && er.code !== "ENOTDIR") return cb(er)
if (er) return cb("Usage:\n"+unpublish.usage)
gotProject(data.name, data.version, cb)
})