We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffead4a commit d93af78Copy full SHA for d93af78
lib/cache.js
@@ -105,12 +105,10 @@ with --force.`)
105
106
log.silly('cache add', 'spec', spec)
107
108
- // we ask pacote for the thing, and then just throw the data
109
- // away so that it tee-pipes it into the cache like it does
110
- // for a normal request.
111
await pacote.tarball.stream(spec, stream => {
112
stream.resume()
113
- return stream.promise()
+ return cacache.put.stream(this.npm.config.get('cache'), stream)
+ .pipe(stream).promise()
114
}, this.npm.flatOptions)
115
}
116
0 commit comments