Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个什么原因,求教,运行npm run sys-init报错 #31

Open
ghostjum opened this issue Jul 26, 2023 · 2 comments
Open

这个什么原因,求教,运行npm run sys-init报错 #31

ghostjum opened this issue Jul 26, 2023 · 2 comments

Comments

@ghostjum
Copy link

image
D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\transpilers\swc.ts:262
throw new Error(
^
Error: @swc/core threw an error when attempting to validate swc compiler options.
You may be using an old version of swc which does not support the options used by ts-node.
Try upgrading to the latest version of swc.
Error message from swc:
Bindings not found
at createVariant (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\transpilers\swc.ts:262:13)
at createSwcOptions (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\transpilers\swc.ts:211:25)
at create (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\transpilers\swc.ts:56:41)
at createTranspiler (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\index.ts:784:16)
at createTranspileOnlyGetOutputFunction (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\index.ts:1341:28)
at createFromPreloadedConfig (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\index.ts:1404:34)
at create (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\index.ts:624:10)
at register (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\index.ts:591:15)
at Object.registerAndCreateEsmHooks (D:\soft package\chatflow-1.11.3\chatflow-1.11.3\node_modules\ts-node\src\esm.ts:116:34)
at file:///D:/soft%20package/chatflow-1.11.3/chatflow-1.11.3/node_modules/ts-node/esm.mjs:8:7

@choogoo
Copy link
Collaborator

choogoo commented Jul 26, 2023

检查一下nodejs版本,使用node16

@ghostjum
Copy link
Author

0c7ca296daad63ec992c2c1651e07ac
大神,确实是16版本呢,依然是报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants