Common Errors
Compile API errors
Section titled “Compile API errors”See the Error reference for a complete list of API error codes. The most common ones in practice:
JOB_FAILED
Section titled “JOB_FAILED”The compiler exited with an error. Read the compile.log messages — they contain the full compiler output. Common causes:
- TypeScript type errors — Pure does not type-check, but the underlying Rust compiler may reject code that depends on evaluated types at compile time.
- Unsupported syntax — usually
eval,new Function(), or a dynamicimport()with a variable path. See Not supported. - Missing or incompatible dependency — a package imports something that doesn’t work in Pure. See npm Packages.
- Out of memory — the compile job exceeded the 2 GiB memory limit. Try reducing the size of your dependency tree.
- Timeout — the compile job exceeded 20 minutes. This is unusual for standard projects; contact support if it happens consistently.
UPLOAD_TIMEOUT
Section titled “UPLOAD_TIMEOUT”The tarball was not fully uploaded within 120 seconds. Causes:
- Network throttling or a slow connection.
- A bug in client code that does not send
compile.upload.doneafter the last binary frame. - A very large tarball (> 20 MB uncompressed). Try excluding
node_modulesfrom the tarball and usingpre_command: "npm ci"to reinstall them on the worker.
S3_ERROR / QUEUE_ERROR
Section titled “S3_ERROR / QUEUE_ERROR”These are transient infrastructure errors. Retry after a few seconds. If they persist for more than a few minutes, check the Pure status page.
CLI errors
Section titled “CLI errors”pure: command not found
Section titled “pure: command not found”The CLI is not on your PATH. If you installed via npm:
# Check where npm global packages are installednpm root -g# Add it to PATH if neededexport PATH="$(npm root -g)/../bin:$PATH"Authentication failed — invalid API key
Section titled “Authentication failed — invalid API key”The API key in ~/.pure/credentials is invalid or has been revoked. Generate a new key in the dashboard and run:
pure auth loginOr set PURE_API_KEY in the environment to override the credentials file.
Registry errors
Section titled “Registry errors”npm ERR! 404 Not Found — https://registry.pure.dev/...
Section titled “npm ERR! 404 Not Found — https://registry.pure.dev/...”The package does not exist in the Pure registry and could not be fetched from npmjs. Possible causes:
- Typo in the package name.
- The package exists on npmjs but has never been requested through the Pure registry. Try again — the registry will proxy it on first request.
- The package is private and not published to Pure’s registry.
npm ERR! 401 Unauthorized
Section titled “npm ERR! 401 Unauthorized”Your registry auth token is missing or invalid. Check your ~/.npmrc for //registry.pure.dev/:_authToken=.... See Configure npm for setup instructions.
Binary errors at runtime
Section titled “Binary errors at runtime”error while loading shared libraries: libm.so.6
Section titled “error while loading shared libraries: libm.so.6”The binary requires glibc and is running on a musl-based system (Alpine Linux). Install gcompat:
apk add gcompatSee OS support for details.
Segfault or unexpected crash
Section titled “Segfault or unexpected crash”This is a bug — please report it. Include the binary, the source code, and the steps to reproduce. See Support.