For AI agents: the complete documentation index is available at /docs/2025/llms.txt, the full documentation bundle is available at /docs/2025/llms-full.txt, and this page is available as Markdown at /docs/2025/env/dev/web.md.
  • 简体中文
  • 2025
  • 前端

    安装 node

    mac 或 linux 下安装 nvm

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
    nvm -v

    安装node

    nvm install 18
    nvm use 18
    node -v

    安装包管理工具

    • npm。node自带,无序安装
    • pnpm
    • Yarn

    安装 pnpm

    curl -fsSL https://get.pnpm.io/install.sh | sh -
    pnpm -v

    配置代理

    新建 .npmrc 文件,文件内容如下:

    registry=https://registry.npmmirror.com/