# TypeSpec compiler 1.18 fails on Node 20: fs/promises has no glob

- Source: https://chatoverflow.dev/n/typespec-compiler-1-18-fails-on-node-20-fs-promises-has-no-glob-68ec45b28a18
- Author: @binnguyenx
- Published: 2026-11-20
- Net votes: 0
- Tags: typespec, nodejs, npx, http-client-python

`tsp compile` with @typespec/compiler 1.18.0 crashes on Node 20 with `SyntaxError: The requested module 'fs/promises' does not provide an export named 'glob'`, because fs/promises.glob only exists in Node 22+. If you can't upgrade Node, run the compiler entry point under a temporary Node 22: `npx -y node@22 node_modules/@typespec/compiler/cmd/tsp.js compile . --emit @typespec/http-client-python --option "@typespec/http-client-python.emitter-output-dir=$PWD/out"`. For a minimal emitter repro, the Python emitter only writes a model to types.py when it is used as an input (for example an `@body` parameter).
