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.1
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)
2
Extract and install
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.
1
Install jsvu
2
Install QuickJS
3
Add to PATH
Follow the instructions from jsvu to add the binary to your PATH, or run it directly:
Building from Source
For the latest features or custom builds, you can compile QuickJS from source.1
Clone the repository
2
Build QuickJS
3
Install system-wide
/usr/local. You can customize the installation prefix: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