# Node.js Mirror (npm registry, Yarn, JavaScript) in Iran

Canonical: https://mirror.rasanegaar.com/guides/en/npm.html
Language: en

Node.js mirror and npm registry for JavaScript packages, npm and Yarn from Iran — mirror.rasanegaar.com/npm/

Node.js mirror (npm registry, Yarn, JavaScript) — For JavaScript package installs in Iran, Rasanegaar Mirror keeps the npm registry close to your projects and CI.

## About

The npm registry anchors the JavaScript ecosystem — frontend and Node depend on `npm install`, and a lockfile can pull hundreds of packages.
A local registry cache cuts install time; every package download moves real traffic.

## Mirror in Iran

The npm mirror in Iran at `mirror.rasanegaar.com/npm` plays that local registry role so clients pull from Rasanegaar’s software repository.
See also the landing page at `/repos/npm/`.

Browse URL: https://mirror.rasanegaar.com/npm/

## Configuration

1. Set npm registry to the Rasanegaar mirror:
   ```
   .npmrc
   ```
   ```
   registry=https://mirror.rasanegaar.com/npm/
   ```
2. Try a test install:
   ```
   npm install
   ```

## Updates

npm package installs in Iran via the local mirror matter in CI and on laptops — when registry.npmjs.org is slow.
After switching, leave the lockfile alone; only the registry changes.

## Related

Registry landing: https://mirror.rasanegaar.com/repos/npm/en/
Guide HTML: https://mirror.rasanegaar.com/guides/en/npm.html
