@expo/vm-tools

中文文档
27.10.0发布于 2026/11/14BUSL-1.1零依赖构建来源已验证近 30 天下载 2278

VM startup script loader

原始使用文档

@expo/vm-tools

A startup script loader for macOS VMs.

Install

bunx @expo/vm-tools@latest install

Installs a per-user launchd agent and a standalone runner. The agent starts at the next GUI login; installation does not load it or run a script. Automatic GUI login is required, and the Node executable used for installation must remain available.

Startup script

At login, vm-tools waits for /usr/local/share/vm-tools/startup.sh and runs it with /bin/bash once per VM boot. Put the file in the VM or provide it through a shared directory. The script does not need executable permission.

The runner waits for the script to exit and returns its exit status. Failed scripts are not restarted. The script owns its environment, processes and cleanup; use exec for a foreground command so termination signals reach it.

Output is written to ~/Library/Logs/vm-tools.log.

版本与发布记录

@expo/vm-tools 共发布 14 个版本,首次发布于 2026/10/30;过去 12 个月发布了 14 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
27.10.0latest2026/11/14今天
27.9.02026/11/121 天前
27.8.02026/11/121 天前
27.7.22026/11/113 天前
27.7.12026/11/103 天前
27.7.02026/11/103 天前

关于 @expo/vm-tools 的常见问题

@expo/vm-tools 是什么?

VM startup script loader

如何安装 @expo/vm-tools?

在项目目录运行 npm install @expo/vm-tools,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 vm-tools,可以用 npx vm-tools 直接运行。

@expo/vm-tools 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/expo__vm-tools 是否存在。

@expo/vm-tools 可以商用吗?

@expo/vm-tools 使用 BUSL-1.1 许可。声明的许可为 BUSL-1.1,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@expo/vm-tools 的下载量有多少?

根据 npm 官方下载统计,@expo/vm-tools 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,278 次,日均约 76 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@expo/vm-tools 还在维护吗?

最新版本 27.10.0 发布于 2026/11/14(今天);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/10/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。