title: Serving Docs Locally for Development | Meshtastic
source: https://meshtastic.org/docs/development/documentation/local-dev/
author:
published:
created: 2025-05-09
description: Prerequisites
tags:
- lora
- HamRadio
In order to set up your local environment, you will need to install:
Log into GitHub and create a fork of the meshtastic/meshtastic repository.
Clone your Fork of the Documentation Repositorygit clone https://github.com/YOUR_GITHUB_USERNAME/meshtastic.git
Change Directorycd ./meshtastic
Install Submodulesgit submodule update --init --recursive
Install Node.js using NVMnvm install && nvm use
Install dependencies using pnpmpnpm i
Run node.js serverpnpm start
Check Remote and Upstream Repositoriesgit remote -v
If it's set, skip to Align with meshtastic/meshtastic Master branch
If upstream exists, set the URL:
Update Upstream Repositorygit remote set-url upstream https://github.com/meshtastic/meshtastic.git
If upstream doesn't exist, add the URL:
Add Upstream Repositorygit remote add upstream https://github.com/meshtastic/meshtastic.git
Rebase local Meshtastic to remote Meshtasticcd ~/meshtastic ; git fetch upstream ; git checkout master ; git rebase upstream/master