repowisestage 0.0.42 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/repowise.js +3 -1
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -3103,11 +3103,13 @@ async function resolveNpmCommand() {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
async function runNpmInstall(cwd, pkg2) {
|
|
3105
3105
|
const npmCmd = await resolveNpmCommand();
|
|
3106
|
+
const nodeDir = dirname5(process.execPath);
|
|
3107
|
+
const augmentedPath = process.env.PATH ? `${nodeDir}:${process.env.PATH}` : nodeDir;
|
|
3106
3108
|
return new Promise((resolve4, reject) => {
|
|
3107
3109
|
const child = spawn3(npmCmd, ["install", "--no-audit", "--no-fund", "--silent", pkg2], {
|
|
3108
3110
|
cwd,
|
|
3109
3111
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3110
|
-
env: { ...process.env }
|
|
3112
|
+
env: { ...process.env, PATH: augmentedPath }
|
|
3111
3113
|
});
|
|
3112
3114
|
let stderr = "";
|
|
3113
3115
|
child.stderr.on("data", (chunk) => {
|