diff --git a/lib/install.js b/lib/install.js index f8ee7b32..929f733e 100644 --- a/lib/install.js +++ b/lib/install.js @@ -15,7 +15,15 @@ const devDeps = [ ] const npm = (root, args) => { + const env = {} + for (const [key, value] of Object.entries(process.env)) { + if (!key.startsWith('npm_')) { + env[key] = value + } + } + return spawn('npm', args, { + env, cwd: root, stdioString: true, })