| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 175b8fe commit 01da702
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,12 +38,12 @@ const pkgPath = path.join(installDir, 'package.json'); | |||
| 38 | 38 | ||
| 39 | 39 | fs.writeFileSync(pkgPath, pkgContent); | |
| 40 | 40 | ||
| 41 | - const env = Object.assign({}, process.env, { | ||
| 42 | - PATH: path.dirname(process.execPath), | ||
| 43 | - NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'), | ||
| 44 | - NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'), | ||
| 45 | - HOME: homeDir, | ||
| 46 | - }); | ||
| 41 | + const env = { ...process.env, | ||
| 42 | + PATH: path.dirname(process.execPath), | ||
| 43 | + NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'), | ||
| 44 | + NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'), | ||
| 45 | + HOME: homeDir, | ||
| 46 | + }; | ||
| 47 | 47 | ||
| 48 | 48 | exec(`${process.execPath} ${npmPath} install`, { | |
| 49 | 49 | cwd: installDir, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments