Installation

Install MoroJS and set up your development environment. Once installed, you'll be ready to build your first API.

ESM-Only Framework

MoroJS is built exclusively for modern JavaScript and requires ESM (ES Modules). This means your project must use "type": "module" in package.json and proper TypeScript configuration for ESM support.

If you're migrating from a CommonJS project, you'll need to convert your imports/exports to ESM syntax.

Prerequisites

Before installing MoroJS, ensure you have the following:

  • Node.js 18.0.0 or higher
  • npm, yarn, or pnpm package manager
  • TypeScript knowledge (recommended)

Ready to Install

Let's Get You Started!

Now that you know the requirements, let's install MoroJS and build your first API. Our Quick Start guide will walk you through everything step-by-step.

Go to Quick Start Guide

Troubleshooting

Common Issues

Node.js version issues

Ensure you're using Node.js 18 or higher. You can check your version with node --version.

TypeScript compilation errors

Make sure your tsconfig.json has "moduleResolution": "NodeNext" and "esModuleInterop": true.

Import/export issues

Use ES modules syntax: import { createApp } from '@morojs/moro' instead of CommonJS require.