`npx` 命令可能下载并执行未固定版本的软件包
原文依据:2 处初始化诊断和 YAML 检查都要求运行 `npx momentic-mobile`,但指令没有固定版本或要求验证已安装的二进制文件。当本地不存在该包时,npx 可能从包注册表获取并执行代码。
被替换、受损或意外升级的软件包会以当前用户权限执行,可能读取项目文件、环境凭据或更改工作区。
两处都是实际工作流命令,且都使用没有版本限定的 `npx momentic-mobile`。本地缺少合适副本时,`npx` 可能联网获取并执行软件包;诊断和 lint 的正当用途并不能消除未固定依赖带来的代码变化或供应链风险。用户可要求固定并核验版本,或仅允许预先安装的受信二进制文件。
Run `npx momentic-mobile doctor` for initial setup and launch, driver, device,or connectivity failures. Use `--json` when collecting a support report. Seethe [doctor reference](https://momentic.ai/docs/cli-reference/momentic-mobile/commands/doctor).查看另外 1 个位置
Consult [File format](https://momentic.ai/docs/core-concepts/file-format) fortop-level structure and [Steps](https://momentic.ai/docs/core-concepts/steps) forstep syntax. Run `npx momentic-mobile lint` when schema or file-reference riskwarrants it.