Fix error related to npm config get
This commit is contained in:
@ -575,7 +575,7 @@ export function getBuildContext(params: {
|
|||||||
try {
|
try {
|
||||||
child_process.execSync("npm config get", {
|
child_process.execSync("npm config get", {
|
||||||
cwd: dirPath,
|
cwd: dirPath,
|
||||||
stdio: "ignore"
|
stdio: "pipe"
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (String(error).includes("ENOWORKSPACES")) {
|
if (String(error).includes("ENOWORKSPACES")) {
|
||||||
|
Reference in New Issue
Block a user