From 6d83ae2fb1806dbc3f6505cdd7d682ae4b662169 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Tue, 13 Aug 2024 17:55:54 -0400 Subject: [PATCH] fix(core): disable daemon in postinstall (#27415) ## Current Behavior Daemon is stopped.. but then started in the postinstall process. The results might be premature and cause issues for subsequent commands. ## Expected Behavior Daemon is stopped... and disabled in postinstall process. This won't cause issues for subsequent commands. ## Related Issue(s) Fixes # --- packages/nx/bin/post-install.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nx/bin/post-install.ts b/packages/nx/bin/post-install.ts index aa2d852ad8b78..199c600cf8b50 100644 --- a/packages/nx/bin/post-install.ts +++ b/packages/nx/bin/post-install.ts @@ -27,6 +27,8 @@ import { logger } from '../src/utils/logger'; if (isNxCloudUsed(readNxJson())) { tasks.push(verifyOrUpdateNxCloudClient(getCloudOptions())); } + + process.env.NX_DAEMON = 'false'; await Promise.all( tasks.map((promise) => { return promise.catch((e) => {