# Node.js mirror (pkg.shecan.ir)

> Mirror of nodejs.org/dist (Node.js release binaries, headers, SHASUMS) for nvm, n, nvm-windows and direct downloads.

- Upstream: nodejs.org/dist
- Mirror URL: <https://mirror-nodejs.pkg.shecan.ir/dist/>
- Clients: nvm, n, nvm-windows, curl
- Service status: <https://pkg.shecan.ir/status.json> (key `nodejs`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/nodejs/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/nodejs.json>
- Integrity comparison with the official source (audit.shecan.ir, also run by Shecan, open source; group `nodejs`, mirror `shecan`): <https://audit.shecan.ir/#nodejs>

## Limitations

- npm packages come from the separate npm mirror.

## Setup

Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.

### nvm: persistent (user- or system-wide configuration)

Run (linux, macos) (checked by hand)

```sh
export NVM_NODEJS_ORG_MIRROR=https://mirror-nodejs.pkg.shecan.ir/dist
nvm install --lts
```

Undo / restore the default (linux, macos)

```sh
unset NVM_NODEJS_ORG_MIRROR
sed -i.bak -E '/^export (NVM_NODEJS_ORG_MIRROR)=/d' ~/.bashrc ~/.zshrc ~/.profile 2>/dev/null || true
```

### n: temporary (one command or the current shell; nothing saved)

Run (linux, macos)

```sh
N_NODE_MIRROR=https://mirror-nodejs.pkg.shecan.ir/dist n lts
```

### nvm-windows: persistent (user- or system-wide configuration)

Run (windows) (checked by hand)

```powershell
nvm node_mirror https://mirror-nodejs.pkg.shecan.ir/dist/
```

### curl: temporary (one command or the current shell; nothing saved)

Run (linux, macos)

```sh
curl -fLO https://mirror-nodejs.pkg.shecan.ir/dist/v24.21.0/node-v24.21.0-linux-x64.tar.xz
```
