Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
固定
tsx
到3.12.2
,因为3.14.0
没法在 nodev18.19.0
以上运行,我们也没法升级更高的版本,因为再升级就没法兼容 node 14 了。禁掉 tsx 的 node warning ,对于一个小脚本来说,禁掉 node warning 无关紧要。
如果用户有条件的话,应该是自己安装最新的 tsx 来运行脚本,或者
umi run
应该是一个按需安装 tsx 的设计(根据 node 版本不同安装不同版本的 tsx )。更多上下文信息:#11981
cc @stormslowly