Skip to main content
This page walks through getting a local copy of the Node.js website repository ready for development.
1

Fork the repository

Go to github.com/nodejs/nodejs.org and click the Fork button in the top-right corner to create a copy under your GitHub account.
2

Clone your fork

Clone your fork to your local machine. Choose the method that matches how you authenticate with GitHub:
git clone [email protected]:<YOUR_GITHUB_USERNAME>/nodejs.org.git
Then navigate into the project directory:
cd nodejs.org
3

Add the upstream remote

Add the original nodejs/nodejs.org repository as an upstream remote so you can keep your fork in sync.
git remote add upstream [email protected]:nodejs/nodejs.org.git
Verify your remotes are configured correctly:
git remote -v
You should see both origin (your fork) and upstream (the main repository) listed.
4

Install dependencies

Install all project dependencies using pnpm with the frozen lockfile flag to ensure consistent installs:
pnpm install --frozen-lockfile
The --frozen-lockfile flag ensures your local install matches the exact dependency versions recorded in pnpm-lock.yaml. This keeps your environment consistent with CI and other contributors.

Keeping your fork up to date

Before starting any new work, sync your fork with the upstream repository:
git fetch upstream
git merge upstream/main

Next steps

With the repository installed, start the development server to verify everything is working:

Build docs developers (and LLMs) love