diff --git a/.changeset/sixty-sloths-kneel.md b/.changeset/sixty-sloths-kneel.md new file mode 100644 index 00000000..a08a574a --- /dev/null +++ b/.changeset/sixty-sloths-kneel.md @@ -0,0 +1,5 @@ +--- +'sv': patch +--- + +fix: revert logging dependency install errors diff --git a/packages/cli/commands/add/index.ts b/packages/cli/commands/add/index.ts index 5083491c..d14fca29 100644 --- a/packages/cli/commands/add/index.ts +++ b/packages/cli/commands/add/index.ts @@ -545,10 +545,7 @@ async function runAdders({ if (workspace.packageManager === 'npm') args.unshift('--yes'); try { - const { stderr } = await exec(command, args, { - nodeOptions: { cwd: workspace.cwd, stdio: script.stdio } - }); - if (stderr) throw new Error(stderr); + await exec(command, args, { nodeOptions: { cwd: workspace.cwd, stdio: script.stdio } }); } catch (error) { const typedError = error as Error; throw new Error( diff --git a/packages/cli/common.ts b/packages/cli/common.ts index 86885abb..4ef49fc2 100644 --- a/packages/cli/common.ts +++ b/packages/cli/common.ts @@ -76,8 +76,7 @@ export async function installDependencies(agent: AgentName, cwd: string) { spinner.start('Installing dependencies...'); try { const { command, args } = constructCommand(COMMANDS[agent].install, [])!; - const { stderr } = await exec(command, args, { nodeOptions: { cwd } }); - if (stderr) throw new Error(stderr); + await exec(command, args, { nodeOptions: { cwd } }); spinner.stop('Successfully installed dependencies'); } catch (error) {