自动全局安装并立即运行未固定版本的 npm 包
原文依据:2 处前置步骤在找不到 CLI 时执行 `npm install -g just-scrape@latest`,随后运行该程序。`latest` 是可变版本,全局安装还会影响当前用户的工具环境。提供的材料只有使用说明,没有所安装包的实现可供本次审计验证。
如果 npm 包或其依赖在安装时已被破坏,安装脚本或随后执行的 CLI 可能以当前用户权限读取或更改文件、环境变量及凭据。
该 Skill 在 CLI 不存在时主动全局安装 `just-scrape@latest`,随后立即执行它。`latest` 会随时间变化,全局安装可修改用户的命令行环境;所给源码不包含该 npm 包实现,因此无法审查其安装脚本或运行行为。用户可要求固定并校验版本,并在隔离、非全局环境中安装后再运行。
Must be installed and authenticated. Check with `just-scrape validate` and `just-scrape credits`.```bashcommand -v just-scrape >/dev/null 2>&1 || npm install -g just-scrape@latestjust-scrape validatejust-scrape credits```查看另外 1 个位置
- **CLI not found**: Install with `npm install -g just-scrape@latest` or run with `npx just-scrape@latest`- **Auth fails**: Set `SGAI_API_KEY`, then run `just-scrape validate`- **Empty or incomplete page**: Retry with `--mode js`, then add `--stealth` or `--scrolls <n>` if needed