- Node.js (v20.14.0)
- NPM (10.7.0)
npm install pkg --registry https://registry.npmmirror.com
.
├── .github (可选的) → GitHub 配置文件存放路径
│ └── workflow → GitHub 工作流配置
│ └── docs-deploy.yml → 自动部署文档的工作流
│
├── src → 文档文件夹
│ │
│ ├── .vuepress (可选的) → VuePress 配置文件夹
│ │ │
│ │ ├── dist (默认的) → 构建输出目录
│ │ │
│ │ ├── public (可选的) → 静态资源目录
│ │ │
│ │ ├── styles (可选的) → 用于存放样式相关的文件
│ │ │
│ │ ├── config.{js,ts} (可选的) → 配置文件的入口文件
│ │ │
│ │ └── client.{js,ts} (可选的) → 客户端文件
│ │
│ ├── ... → 其他项目文档
│ │
│ └── README.md → 项目主页
│
└── package.json → Nodejs 配置文件
npx vp-update
- 腾讯云镜像
npm config set registry http://mirrors.cloud.tencent.com/npm/
- 淘宝镜像
npm config set registry https://registry.npmmirror.com
- 华为云镜像
npm config set registry https://mirrors.huaweicloud.com/repository/npm/