# all-item **Repository Path**: jkx13/all-item ## Basic Information - **Project Name**: all-item - **Description**: 前端项目集合 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-11 - **Last Updated**: 2024-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **lerna 安装依赖相关的命令**: 1. 全局安装 lerna 工具:`npm install lerna -g` 2. 初始化 lerna 项目后安装依赖: - `lerna bootstrap`:安装所有依赖项并连接所有的交叉依赖。 - `lerna add axios`:增加模块包到最外层的公共 `node_modules` 中。 - `lerna add ui-web --scope=example-web`:增加模块包到 `packages` 中指定项目。 - `yarn install`:在配置了 `yarn workspaces` 后用于安装依赖。 **lerna 其他常用命令**: 1. `lerna init`:初始化 lerna 项目。 2. `lerna create `:创建一个新的由 lerna 管理的包。 3. `lerna list` 或 `lerna ls`:显示所有的安装的包。 4. `lerna list --json`:以 json 方式查看 lerna 安装的包及包的路径。 5. `lerna clean`:从所有包中删除 `node_modules` 目录,但不会删除项目最外层的根 `node_modules` 。 6. `lerna publish`:在当前项目中发布包。