Complete installation instructions for the Nagari programming language ecosystem.
# Install the Nagari runtime from npm
npm install -g nagari-runtime
# Or add to your project
npm install nagari-runtime# Clone the repository
git clone https://github.com/ayanalamMOON/Nagari.git
cd Nagari
# Build the complete toolchain
cargo build --release
# Run tests to verify installation
cargo test- Node.js: v16.0.0 or higher
- Rust: v1.70.0 or higher (for building from source)
- Operating System: Windows 10+, macOS 10.15+, or Linux (Ubuntu 18.04+)
- Memory: 2GB RAM minimum, 4GB recommended
- Storage: 500MB free space
- VS Code with Nagari LSP extension
- Git for version control
- Docker (optional, for containerized development)
The easiest way to get started with Nagari:
# Global installation
npm install -g nagari-runtime
# Verify installation
nagari --versionFor the latest development version:
# Install from cargo
cargo install --git https://github.com/ayanalamMOON/Nagari --bin nagari
# Or clone and build locally
git clone https://github.com/ayanalamMOON/Nagari.git
cd Nagari
cargo build --releaseDownload pre-built binaries from GitHub Releases:
- Download the appropriate binary for your platform
- Extract to a directory in your PATH
- Make executable (Linux/macOS):
chmod +x nagari
# Using Windows Package Manager
winget install Nagari.Nagari
# Or using Chocolatey
choco install nagari
# Manual installation
# 1. Download from releases
# 2. Extract to C:\Program Files\Nagari
# 3. Add to PATH environment variable# Using Homebrew
brew install nagari
# Using MacPorts
sudo port install nagari
# Manual installation
curl -L https://github.com/ayanalamMOON/Nagari/releases/latest/download/nagari-macos.tar.gz | tar xz
sudo mv nagari /usr/local/bin/# Ubuntu/Debian
wget https://github.com/ayanalamMOON/Nagari/releases/latest/download/nagari-linux.deb
sudo dpkg -i nagari-linux.deb
# Arch Linux
yay -S nagari
# Manual installation
curl -L https://github.com/ayanalamMOON/Nagari/releases/latest/download/nagari-linux.tar.gz | tar xz
sudo mv nagari /usr/local/bin/-
Install the Nagari LSP extension:
code --install-extension nagari.nagari-lsp
-
Configure VS Code settings:
{ "nagari.lsp.enabled": true, "nagari.lsp.serverPath": "nagari-lsp", "files.associations": { "*.nag": "nagari" } }
The Nagari REPL provides interactive development:
# Start the REPL
nagari repl
# REPL with specific runtime
nagari repl --runtime node
# REPL with debugging
nagari repl --debugVerify your installation with these commands:
# Check version
nagari --version
# Run a simple program
echo 'console.log("Hello, Nagari!");' > hello.nag
nagari run hello.nag
# Start the REPL
nagari repl
# Run tests (if built from source)
cargo test# Initialize a new project
nagari init my-project
cd my-project
# Install dependencies
nagari install
# Add a package
nagari add math@latestError: Command not found
- Ensure Nagari is in your PATH
- On Windows, restart your terminal after installation
Error: Permission denied
- Use
sudoon Linux/macOS for global installation - On Windows, run as Administrator
Error: Version mismatch
- Update Node.js to the latest LTS version
- Clear npm cache:
npm cache clean --force
Error: Build failed
- Ensure Rust toolchain is up to date:
rustup update - Install build dependencies:
sudo apt-get install build-essential(Linux)
After installation:
- Getting Started Guide - Your first Nagari program
- Language Tutorial - Learn Nagari syntax
- API Reference - Explore the standard library
- Examples - Browse example code
Installation taking too long? Check our FAQ for common solutions.