Installation
QuickJS-ng can be installed in several ways. Choose the method that best fits your workflow.Prebuilt Binaries
The easiest way to get started is with prebuilt binaries from GitHub releases.Download the binary
Visit the GitHub Releases page and download the binary for your platform:
- Linux (x86_64, ARM64)
- macOS (x86_64, ARM64)
- Windows (x86_64)
Each release includes binaries for multiple architectures. Make sure to download the one matching your system.
Using jsvu
As of version 2.2.0, jsvu (JavaScript Version Updater) installs QuickJS-ng when thequickjs engine is requested.
Building from Source
For the latest features or custom builds, you can compile QuickJS from source.See the Building guide for detailed build instructions, including debug builds and amalgamated builds.
Amalgamated Build
For projects that want to embed QuickJS without CMake, download the amalgamated build from the Releases page.quickjs-amalgam.c- Single source file with all QuickJS codequickjs.h- Main header filequickjs-libc.h- Standard library header
Compiling the Amalgamated Build
Verifying Installation
After installation, verify that QuickJS is working:What’s Included
A complete QuickJS installation includes:qjs- The QuickJS interpreter and REPLqjsc- The QuickJS compiler (JavaScript to C)libquickjs.aorlibquickjs.so- Static or shared library- Header files:
quickjs.h,quickjs-libc.h
System Requirements
Linux
- GCC 7+ or Clang 6+
- CMake 3.10+
- GNU Make
- POSIX environment
macOS
- Xcode Command Line Tools
- CMake 3.10+
- GNU Make (included)
Windows
- MSVC 2017+ or MinGW-w64
- CMake 3.10+
Embedded
- C11 compiler
- Minimal libc
- ~200KB footprint
Troubleshooting
Common Issues
Command not found Ifqjs is not found after installation, make sure the installation directory is in your PATH:
sudo:
Next Steps
Quick Start
Run your first QuickJS program
Building Guide
Learn about build options and customization