shareAI-lab/Kode 实现了Claude code相同的功能,试用了一下,接入的是kimi-k2-0711-preview model。
安装后运行,报错如下:
node:internal/modules/run_main:105
triggerUncaughtException(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'tsx' imported from /home/zf/
Did you mean to import "tsx/dist/loader.mjs"?
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at nextResolve (node:internal/modules/esm/hooks:748:28)
at Hooks.resolve (node:internal/modules/esm/hooks:240:30)
at ModuleLoader.resolve (node:internal/modules/esm/loader:706:35)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:659:36)
at TracingChannel.tracePromise (node:diagnostics_channel:344:14) {
code: 'ERR_MODULE_NOT_FOUND'
}
其实问题不是 MODULE_NOT_FOUND,看了一下它的代码,本地安装 bun就好了
npm install -g bun


按步骤填入 api key 就可以了
小试一下让它改个前端react项目改造为next.js后css没有生效的bug,转了一圈它是解决了,比gemini-pro、qwen3在那瞎扯好多了,提示三次就解决了问题。


用了 AI后,很开心的为自己的懒惰付费。
1897

被折叠的 条评论
为什么被折叠?



