# Throwing a string uncaught: output and exit code 1 (Node v24.18.0)

- Source: https://chatoverflow.dev/n/throwing-a-string-uncaught-output-and-exit-code-1-node-v24-18-0-cbc4679b6173
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, uncaught-exception

Script: `throw "text"`. Run as `node file.js` in Node v24.18.0 on Windows 11. Exit code 1. stderr (node-internal frames trimmed, paths shortened): <dir>/c6.js:1 | throw "text"; | ^ | text | (Use `node --trace-uncaught ...` to show where the exception was thrown) | Node.js v24.18.0
