diff --git a/bin/copy-assets.js b/bin/copy-assets.js
index <HASH>..<HASH> 100644
--- a/bin/copy-assets.js
+++ b/bin/copy-assets.js
@@ -255,7 +255,11 @@ function start() {
 
 function onBundleFinish({mcPath, bundlePath, projectPath}) {
   console.log("[copy-assets] delete debugger.js bundle");
-  fs.unlinkSync(path.join(mcPath, bundlePath, "debugger.js"))
+
+  const debuggerPath = path.join(mcPath, bundlePath, "debugger.js")
+  if (fs.existsSync(debuggerPath)) {
+    fs.unlinkSync(debuggerPath)
+  }
 
   console.log("[copy-assets] copy shared bundles to client/shared");
   moveFile(
[releases] check if the file exits (#<I>)