Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/utils/read-installed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-installed.js b/lib/utils/read-installed.js
index 0be942ff7..8746f333e 100644
--- a/lib/utils/read-installed.js
+++ b/lib/utils/read-installed.js
@@ -37,7 +37,7 @@ function readInstalled (args, cb) {
if (activeVersion && data[package][activeVersion]) {
data[package][activeVersion].active = true
}
- if (!version) listed()
+ if (!version || version.charAt(0) === ".") return listed()
if (version !== "active") {
data[package][version] = data[package][version] || {}
return process.nextTick(V)