Skip to content

[P2] SKILL.md 指导用 node 运行 .ts 脚本,但 Node LTS 不支持 #54

@nnn228085-star

Description

@nnn228085-star

问题描述
scripts/trust-cli.ts 是 TypeScript 文件,但 SKILL.md 指导用户直接用 node 运行。在企业环境最常用的 Node v18/v20 LTS 上,不安装 tsxts-node 的情况下会直接报错。Node v22.6+ 支持 --experimental-strip-types,v23.6+ 默认支持,但企业环境通常锁定在 LTS 版本。

建议修复方案
.ts 脚本编译为 .js 并随 npm 包一起发布,或在 SKILL.md 和 setup.sh 中明确注明 Node 版本要求。


Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions