E2B
E2B copied to clipboard
E2B CLI is not working when using Node.js 20.4.x - 20.5.x
When you are using Node.js 20.4.x - 20.5.x the E2B CLI is crashing when a fetch command is
$ e2b build
Preparing sandbox template building (4 files in Docker build context).
Found ./e2b.Dockerfile that will be used to build the sandbox template.
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at async WX (/Users/xxx/.nvm/versions/node/v20.5.1/lib/node_modules/@e2b/cli/dist/index.js:149:775)
at async e.<anonymous> (/Users/xxx/.nvm/versions/node/v20.5.1/lib/node_modules/@e2b/cli/dist/index.js:123:1425) {
cause: Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
errno: -54,
code: 'ECONNRESET',
syscall: 'read'
}
The CLI works when using other Node.js versions.