Skip to content

Commit a6f1e83

Browse files
committed
FAQ node
1 parent 07345d7 commit a6f1e83

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

documentation/reference/faq.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,27 @@ See [Project Structure – package.json](/docs/explanation/core-concepts/project
313313

314314
No, Chocolatey is not needed. During installation, the Node.js installer may show an option to install Chocolatey (a package manager for Windows). You can safely uncheck this option. Needle Engine does not use or require Chocolatey.
315315

316+
## Which Node.js version should I use?
317+
318+
We recommend **Node.js 22 LTS or 24 LTS**. Older versions (including Node 18, and Node 20 below 20.19) are no longer supported by the build tools Needle Engine relies on.
319+
320+
The [Getting Started guide](/docs/getting-started/#node-js-required) also lists this as a prerequisite, with download links for Windows and macOS.
321+
322+
Check your installed version with `node -v` in a terminal.
323+
324+
## Vite says my Node.js version is too old / `SyntaxError: ... does not provide an export named 'styleText'`
325+
326+
If you see an error like this when running `npm run dev`:
327+
328+
```
329+
You are using Node.js 20.9.0. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
330+
SyntaxError: The requested module 'node:util' does not provide an export named 'styleText'
331+
```
332+
333+
…your Node.js version is too old. Vite 8 (used by recent Needle Engine versions) requires Node.js 20.19+ or 22.12+.
334+
335+
**Fix:** Install a current LTS from the [Node.js download page](https://nodejs.org/) — see [Which Node.js version should I use?](#which-node-js-version-should-i-use) for our recommendation.
336+
316337
## I don't have any buttons like "Generate Project" in my components/inspector
317338

318339
Please check that you're not accidentally in the Inspector's `Debug` mode – switch back to `Normal`:

0 commit comments

Comments
 (0)