This guide walks you through everything needed to get NEX OS running on your local machine — from cloning the repository to seeing the animated UEFI boot screen in your browser. The full installation takes under five minutes on a standard internet connection, and no special tooling beyond Node.js and npm is required to start developing.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shadownrx/windows/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available in your environment:- Node.js 18.0.0 or higher (20.x LTS recommended) — Download
- npm 9.0.0 or higher (bundled with Node.js 18+)
Installation
Clone the Repository
Clone the NEX OS repository from GitHub and navigate into the project directory.
Install Dependencies
Install all project dependencies. NEX OS supports npm, yarn, and pnpm — use whichever you prefer.This installs all runtime and dev dependencies declared in
package.json, including React 19, Vite 8, Framer Motion 12, Three.js, AssemblyScript, and all Fluent UI icon packages.Start the Development Server
Launch the Vite development server with Hot Module Replacement enabled.The terminal will output:Open
http://localhost:5173 in your browser. You will be greeted by the animated UEFI boot screen — the entry point to the NEX OS lifecycle. From there, the sequence proceeds automatically through POST, Windows Boot, and the Login screen before landing on the desktop.(Optional) Compile WASM Modules
If you plan to modify the WebAssembly performance layer, compile the AssemblyScript source to WASM before starting the dev server.This command runs the AssemblyScript compiler (
asc) against assembly/index.ts and outputs the compiled binary to public/process_utils.wasm along with its JavaScript glue file public/process_utils.js, as configured in asconfig.json.You only need to run
build:as if you modify files inside the assembly/ directory. The pre-compiled WASM artifacts are already included in the repository and work out of the box for all built-in features, including the real-time Task Manager.Production Build
When you are ready to deploy or benchmark the production bundle, run the full build pipeline followed by the local preview server.build script chains three steps automatically: npm run build:as (AssemblyScript → WASM), tsc -b (TypeScript type check), and vite build (bundle and optimize). Output lands in the dist/ directory.
| Artifact | Uncompressed | Gzip |
|---|---|---|
dist/assets/index.js | ~1,863 KB | ~499 KB |
dist/assets/index.css | ~27.6 KB | ~6.4 KB |
dist/index.html | ~1.2 KB | ~0.6 KB |
Available npm Scripts
| Script | Description |
|---|---|
npm run dev | Start the Vite dev server with instant HMR on localhost:5173 |
npm run build | Full production pipeline: WASM compile → TypeScript check → Vite bundle |
npm run build:as | Compile assembly/index.ts → WASM only (skips TypeScript and Vite) |
npm run preview | Serve the dist/ folder locally for production preview |
npm run lint | Run ESLint across all source files using the project’s flat config |
npm run music:server | Start the Nex Music backend server (runs npm run dev inside server/) |
Troubleshooting
Port 5173 is already in use
Port 5173 is already in use
Another process is occupying the default Vite port. Start the dev server on a different port by passing the Vite will start on
--port flag:http://localhost:3000 instead. You can use any available port number.WASM module not found at runtime
WASM module not found at runtime
This error appears when the pre-compiled WebAssembly artifacts are missing from After running these commands, restart the dev server with
public/. Recompile them and then rebuild:npm run dev. The useWasmEngine hook automatically falls back to a JavaScript implementation if the WASM binary cannot be loaded, so the Task Manager will still function — but with reduced performance.Missing modules or peer dependency errors after npm install
Missing modules or peer dependency errors after npm install
If you encounter missing module errors or corrupted installs, perform a clean reinstall by removing the On Windows (PowerShell), use:If you are using Node.js 22+ and see peer dependency warnings related to React 19, they are expected and safe to ignore — all packages in NEX OS have been verified compatible with React 19.
node_modules directory and the lock file, then reinstalling from scratch: