Permalink
Browse files

Always bypass cache on cygwin, since it breaks so frequently

  • Loading branch information...
1 parent ea751f7 commit 1cdfa0d07ff774a96e9d9c3e00db6e960f6f478c @isaacs isaacs committed Mar 25, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/cache.js
View
@@ -102,7 +102,7 @@ function read (name, ver, cb) {
if (data) deprCheck(data)
return cb(er, data)
}
- if (npm.config.get("force")) {
+ if (npm.config.get("force") || process.platform === "cygwin") {
log.verbose(true, "force found, skipping cache")
return addNamed(name, ver, c)
}
@@ -283,7 +283,8 @@ function addNameVersion (name, ver, cb) {
deprCheck(data)
if (!data.dist || !data.dist.tarball) return cb(new Error(
"No dist.tarball in package data"))
- if (response.statusCode !== 304 || npm.config.get("force")) {
+ if (response.statusCode !== 304 || npm.config.get("force")
+ || process.platform === "cygwin") {
return fetchit()
}
// we got cached data, so let's see if we have a tarball.

0 comments on commit 1cdfa0d

Please sign in to comment.