diff --git a/scripts/todesktop/postInstall.js b/scripts/todesktop/postInstall.js index e9353abf..c33d095f 100644 --- a/scripts/todesktop/postInstall.js +++ b/scripts/todesktop/postInstall.js @@ -13,8 +13,7 @@ async function postInstall() { console.log('After Yarn Install ' , os.platform()); if (fs.existsSync(path.join('./assets','ComfyUI'))) { - console.log('Comfy Already Installed, Skipping.'); - return; + throw new Error("You are trying to install ComfyCLI when it has already been installed!"); } if (os.platform() === "win32")