Installation
Get started with HazelJS by following these installation instructions for your operating system.
Prerequisites
Before installing HazelJS, make sure you have the following prerequisites:
- Node.js 18.x or later
- npm 9.x or later
- Git (optional, for development)
Using npm
The easiest way to install HazelJS is through npm:
npm install -g hazeljs
Using Homebrew (macOS)
If you're on macOS, you can use Homebrew to install HazelJS:
brew install hazeljs
Building from Source
To build HazelJS from source, follow these steps:
- Clone the repository:
git clone https://github.com/hazeljs/hazeljs.git
- Navigate to the project directory:
cd hazeljs
- Install dependencies:
npm install
- Build the project:
npm run build
Verifying Installation
After installation, verify that HazelJS is installed correctly:
hazeljs --version
Next Steps
Now that you have HazelJS installed, you can:
- Follow our Quick Start Guide to create your first HazelJS application
- Learn about Runtime Features
- Explore our Module System
Need Help?
If you encounter any issues during installation, please:
- Check our GitHub Issues
- Join our Discord Community
- Read our Troubleshooting Guide