Coding Global Background
Coding Global

The program no longer works after I compiled it with pkg

Archived 9 months ago
5 messages
2 members
2 years ago
Open in Discord
J
Jannik
Verified

error ``` Error: Cannot mkdir in a snapshot. Try mountpoints instead. at mkdirFailInSnapshot (pkg/prelude/bootstrap.js:1633:7) at Object.mkdirSync (pkg/prelude/bootstrap.js:1645:12) at check (C:\snapshot\Src token checker\index.js) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 15) at async C:\snapshot\Src token checker\index.js ``` code ``` const subFolderName = folderName; // Name des Unterordners const outputPath = path.join(__dirname, 'output', subFolderName); // Pfad zum Unterordner // Überprüfen, ob der Unterordner existiert, und wenn nicht, erstellen if (!fs.existsSync(outputPath)) { fs.mkdirSync(outputPath, { recursive: true }); } ```

Replies (5)