Nodebrew 技术文档
1. 安装指南
1.1 使用 curl 安装
$ curl -L git.io/nodebrew | perl - setup
1.2 手动下载并安装
$ wget git.io/nodebrew
$ perl nodebrew setup
1.3 配置环境变量
在您的 shell 配置文件(如 .bashrc 或 .zshrc)中添加以下内容:
export PATH=$HOME/.nodebrew/current/bin:$PATH
然后重新加载配置文件:
$ source ~/.bashrc
1.4 确认安装
运行以下命令确认 nodebrew 是否安装成功:
$ nodebrew help
1.5 自定义安装路径
如果您想自定义 nodebrew 的安装路径,可以在 shell 配置文件中设置 NODEBREW_ROOT 环境变量:
export NODEBREW_ROOT=/path/to/.nodebrew
默认路径为 $HOME/.nodebrew。
2. 项目的使用说明
2.1 安装 Node.js 版本
使用 nodebrew install 命令安装指定版本的 Node.js:
$ nodebrew install v8.9.4
您也可以安装最新版本或稳定版本:
$ nodebrew install latest # 最新版本
$ nodebrew install stable # 稳定版本
$ nodebrew install v8.9 # v8.9 的最新版本
$ nodebrew install 8.9.4 # 不带 `v` 的版本号
2.2 编译安装 Node.js
如果您需要从源码编译安装 Node.js,可以使用 compile 命令:
$ nodebrew compile v8.9.4
您还可以传递配置选项给 Node.js:
$ nodebrew compile v8.9.4 --v8-options=--harmony
2.3 切换使用的 Node.js 版本
使用 nodebrew use 命令切换到指定版本的 Node.js:
$ nodebrew use v8.9.4
$ node -v
v8.9.4
您也可以切换到最新版本或稳定版本:
$ nodebrew use latest # 最新版本
$ nodebrew use stable # 稳定版本
$ nodebrew use v8.9 # v8.9 的最新版本
$ nodebrew use 8.9.4 # 不带 `v` 的版本号
2.4 列出已安装的版本
使用 nodebrew ls 或 nodebrew list 命令列出所有已安装的 Node.js 版本:
$ nodebrew ls
v8.9.9
v8.9.4
current: v8.9.4
2.5 列出远程版本
使用 nodebrew ls-remote 命令列出所有远程可用的 Node.js 版本:
$ nodebrew ls-remote
v0.0.1 v0.0.2 v0.0.3 v0.0.4 v0.0.5 v0.0.6
...
2.6 列出所有版本
使用 nodebrew ls-all 命令列出所有已安装和远程可用的 Node.js 版本:
$ nodebrew ls-all
Remote:
v0.0.1 v0.0.2 v0.0.3 v0.0.4 v0.0.5 v0.0.6
...
Local:
v8.9.0
v8.9.4
current: v8.9.4
2.7 设置别名
使用 nodebrew alias 命令为特定版本设置别名:
$ nodebrew alias default v8.9.4
default -> v8.9.4
$ nodebrew use default
use v8.9.4
$ nodebrew unalias default
remove default
2.8 卸载 Node.js 版本
使用 nodebrew uninstall 命令卸载指定版本的 Node.js:
$ nodebrew uninstall v8.9.4
v8.9.4 uninstalled
2.9 更新 nodebrew
使用 nodebrew selfupdate 命令更新 nodebrew 本身:
$ nodebrew selfupdate
2.10 临时执行其他版本
使用 nodebrew exec 命令临时执行其他版本的 Node.js:
$ nodebrew exec v8.9.4 -- node app.js
3. 项目API使用文档
3.1 所有命令
以下是 nodebrew 的所有命令及其功能:
$ nodebrew help # 显示帮助信息
$ nodebrew install <version> # 下载并安装指定版本的 Node.js(从二进制文件)
$ nodebrew compile <version> # 下载并安装指定版本的 Node.js(从源码)
$ nodebrew install-binary <version> # `install` 命令的别名(用于向后兼容)
$ nodebrew uninstall <version> # 卸载指定版本的 Node.js
$ nodebrew use <version> # 使用指定版本的 Node.js
$ nodebrew list # 列出已安装的版本
$ nodebrew ls # `list` 命令的别名
$ nodebrew ls-remote # 列出远程版本
$ nodebrew ls-all # 列出远程和已安装的版本
$ nodebrew alias <key> <value> # 设置别名
$ nodebrew unalias <key> # 移除别名
$ nodebrew clean <version> | all # 移除源文件
$ nodebrew selfupdate # 更新 nodebrew
$ nodebrew migrate-package <version> # 将指定版本的全局 NPM 包迁移到当前版本
$ nodebrew exec <version> -- <command> # 使用指定版本的 Node.js 执行命令
$ nodebrew prune [--dry-run] # 卸载旧版本,保留每个主要版本的最新版本
4. 项目安装方式
4.1 使用 curl 安装
$ curl -L git.io/nodebrew | perl - setup
4.2 手动下载并安装
$ wget git.io/nodebrew
$ perl nodebrew setup
4.3 配置环境变量
在您的 shell 配置文件中添加以下内容:
export PATH=$HOME/.nodebrew/current/bin:$PATH
然后重新加载配置文件:
$ source ~/.bashrc
4.4 确认安装
运行以下命令确认 nodebrew 是否安装成功:
$ nodebrew help
4.5 自定义安装路径
如果您想自定义 nodebrew 的安装路径,可以在 shell 配置文件中设置 NODEBREW_ROOT 环境变量:
export NODEBREW_ROOT=/path/to/.nodebrew
默认路径为 $HOME/.nodebrew。
Kimi-K2.5Kimi K2.5 是一款开源的原生多模态智能体模型,它在 Kimi-K2-Base 的基础上,通过对约 15 万亿混合视觉和文本 tokens 进行持续预训练构建而成。该模型将视觉与语言理解、高级智能体能力、即时模式与思考模式,以及对话式与智能体范式无缝融合。Python00- QQwen3-Coder-Next2026年2月4日,正式发布的Qwen3-Coder-Next,一款专为编码智能体和本地开发场景设计的开源语言模型。Python00
xw-cli实现国产算力大模型零门槛部署,一键跑通 Qwen、GLM-4.7、Minimax-2.1、DeepSeek-OCR 等模型Go06
PaddleOCR-VL-1.5PaddleOCR-VL-1.5 是 PaddleOCR-VL 的新一代进阶模型,在 OmniDocBench v1.5 上实现了 94.5% 的全新 state-of-the-art 准确率。 为了严格评估模型在真实物理畸变下的鲁棒性——包括扫描伪影、倾斜、扭曲、屏幕拍摄和光照变化——我们提出了 Real5-OmniDocBench 基准测试集。实验结果表明,该增强模型在新构建的基准测试集上达到了 SOTA 性能。此外,我们通过整合印章识别和文本检测识别(text spotting)任务扩展了模型的能力,同时保持 0.9B 的超紧凑 VLM 规模,具备高效率特性。Python00
KuiklyUI基于KMP技术的高性能、全平台开发框架,具备统一代码库、极致易用性和动态灵活性。 Provide a high-performance, full-platform development framework with unified codebase, ultimate ease of use, and dynamic flexibility. 注意:本仓库为Github仓库镜像,PR或Issue请移步至Github发起,感谢支持!Kotlin08
VLOOKVLOOK™ 是优雅好用的 Typora/Markdown 主题包和增强插件。 VLOOK™ is an elegant and practical THEME PACKAGE × ENHANCEMENT PLUGIN for Typora/Markdown.Less00