1. Environment Setup
AnyRoute English
  • AnyRoute User Guide
  • Frequently Asked Questions
  • AnyRoute Support Group
  • Supported Models
  • Environment Setup
    • Node.js Installation Guide
    • CC Switch Introduction
  • Quick Start Guides
    • Codex CLI Quick Start
    • Claude Code Quick Start
    • OpenClaw Quick Start
    • Hermes Quick Start
    • Cherry Studio Quick Start
    • Claude Desktop Quick Start
    • Codex Desktop Quick Start
    • GPT Image 2 Guide
    • Claude Code in VS Code
  • Advanced Guides
    • Personal AGENTS.md Global Rules
    • Claude Code and Codex Collaboration Guide
  1. Environment Setup

Node.js Installation Guide

Claude Code, Gemini CLI, Codex CLI, and several other developer tools require Node.js. Complete this setup before installing those tools.

Windows#

Option A: official installer (recommended)#

1.
Open the Node.js download page.
2.
Download the current LTS installer for Windows.
3.
Run the installer and keep the default options unless your environment requires otherwise.
Node.js Windows installer

Option B: Chocolatey#

choco install nodejs-lts

Option C: Scoop#

scoop install nodejs-lts

macOS#

Option A: Homebrew#

Option B: official installer#

Download the macOS LTS installer from the Node.js download page.

Linux#

Use your distribution's package manager or a Node.js version manager. The following NodeSource commands are common examples.
Ubuntu or Debian:
CentOS or RHEL:
Review third-party installation scripts before running them in a production or managed environment.

Verify the installation#

Open a new terminal and run:
The installation is successful when both commands print a version number.

Optional: use the npmmirror registry#

If npm downloads are slow or time out from your network, you can switch to the mainland China mirror:
Verify the setting:
To restore the official npm registry later:

Join AnyRoute WeChat Group

To get support for AnyRoute

scan QR code
Modified at 2026-07-24 19:02:03
Previous
Supported Models
Next
CC Switch Introduction
Built with