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:
authorisaacs <i@izs.me>2010-12-10 01:06:49 +0300
committerisaacs <i@izs.me>2010-12-10 01:06:49 +0300
commit6952d1f1e6654a1f7acf33eace85814795a3cfcc (patch)
tree8e1ff06f3fa55e8dfcd56e6ebbb5c45813ad4c53
parent2ee02f7d51ed66264938793006d19d55f7b1096e (diff)
Can't write to a ReadStream. Derp.
-rw-r--r--lib/cache.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js
index e056e7e79..e2854799e 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -242,7 +242,7 @@ function addLocalTarball (p, cb) {
mkdir(path.dirname(tmp), function (er) {
if (er) return cb(er)
var from = fs.createReadStream(p)
- , to = fs.createReadStream(tmp)
+ , to = fs.createWriteStream(tmp)
, errState = null
function errHandler (er) {
if (errState) return