summaryrefslogtreecommitdiff
path: root/deps/npm/lib/cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/cache.js')
-rw-r--r--deps/npm/lib/cache.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/cache.js b/deps/npm/lib/cache.js
index bde72c4f95..7260ab61a3 100644
--- a/deps/npm/lib/cache.js
+++ b/deps/npm/lib/cache.js
@@ -490,7 +490,8 @@ function addLocal (p, name, cb_) {
if (er) {
// if it doesn't have a / in it, it might be a
// remote thing.
- if (p.indexOf("/") === -1 && p.charAt(0) !== ".") {
+ if (p.indexOf("/") === -1 && p.charAt(0) !== "."
+ && (process.platform !== "win32" || p.indexOf("\\") === -1)) {
return addNamed(p, "", cb_)
}
return log.er(cb_, "Could not install: "+p)(er)