diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts
index de27c368e0d88..42b16066577ef 100644
--- a/packages/astro/src/cli/add/index.ts
+++ b/packages/astro/src/cli/add/index.ts
@@ -700,7 +700,11 @@ async function tryToInstallIntegrations({
 						...inheritedFlags,
 						...installCommand.dependencies,
 					],
-					{ cwd }
+					{
+						cwd,
+						// reset NODE_ENV to ensure install command run in dev mode
+						env: { NODE_ENV: undefined },
+					}
 				);
 				spinner.succeed();
 				return UpdateResult.updated;