diff options
Diffstat (limited to 'lib/install/action/extract.js')
-rw-r--r-- | lib/install/action/extract.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/install/action/extract.js b/lib/install/action/extract.js index c05a25dcd..437d7e57f 100644 --- a/lib/install/action/extract.js +++ b/lib/install/action/extract.js @@ -12,13 +12,16 @@ const move = BB.promisify(require('../../utils/move.js')) const npa = require('npm-package-arg') const packageId = require('../../utils/package-id.js') const pacote = require('pacote') -const pacoteOpts = require('../../config/pacote') +let pacoteOpts const path = require('path') module.exports = extract function extract (staging, pkg, log) { log.silly('extract', packageId(pkg)) const extractTo = moduleStagingPath(staging, pkg) + if (!pacoteOpts) { + pacoteOpts = require('../../config/pacote') + } const opts = pacoteOpts({ integrity: pkg.package._integrity }) |