diff --git a/src/ipc/handlers/app_handlers.ts b/src/ipc/handlers/app_handlers.ts index c978546..210e810 100644 --- a/src/ipc/handlers/app_handlers.ts +++ b/src/ipc/handlers/app_handlers.ts @@ -69,7 +69,7 @@ async function executeAppLocalNode({ event: Electron.IpcMainInvokeEvent; }): Promise { const process = spawn( - "(pnpm install && pnpm run dev --port 32100) || (npm install && npm run dev -- --port 32100)", + "(pnpm install && pnpm run dev --port 32100) || (npm install --legacy-peer-deps && npm run dev -- --port 32100)", [], { cwd: appPath, diff --git a/src/ipc/processors/executeAddDependency.ts b/src/ipc/processors/executeAddDependency.ts index f13666e..5ffe3c0 100644 --- a/src/ipc/processors/executeAddDependency.ts +++ b/src/ipc/processors/executeAddDependency.ts @@ -19,7 +19,7 @@ export async function executeAddDependency({ const packageStr = packages.join(" "); const { stdout, stderr } = await execPromise( - `(pnpm add ${packageStr}) || (npm install ${packageStr})`, + `(pnpm add ${packageStr}) || (npm install --legacy-peer-deps ${packageStr})`, { cwd: appPath, },