Tag : node.js

We are using node 18.18.2 for windows in our CI. It is hanging, and after 30 minutes, are wrapper process kills it. When it hasn’t killed it, I did get a dump of node, but it didn’t really show much. How can I augment our wrapper process to, instead of just kill node after reaching 30 minutes, to get diagnostic info like stack trace and variables and such to determine where it is ha..

Read more

global.FolderPath = path.join(os.homedir(), “data”) global.DataPath = path.join(global.FolderPath, “data.json”) let Data: {[key: string]: Configuration} = {}; if (fs.existsSync(global.DataPath)) { const fileContent = fs.readFileSync(global.DataPath, “utf-8”); if (typeof fileContent === “string”) { try { Data = JSON.parse(fileContent) as {[key: string]: Configuration}; } catch (error) { console.error(“Error parsing JSON:”, error); } } else { console.error(“File content is not a ..

Read more