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

启动报错 #8

Closed
1055169799 opened this issue Jul 30, 2022 · 5 comments
Closed

启动报错 #8

1055169799 opened this issue Jul 30, 2022 · 5 comments

Comments

@1055169799
Copy link

[2022-07-30T16:27:58.945] [ERROR] [aPad:2391949993] - 报错:xiaoyao-cvs-plugin
SyntaxError: Invalid or unexpected token
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:337:14)

@ctrlcvs
Copy link
Owner

ctrlcvs commented Jul 30, 2022

你自己改了啥?

@1055169799
Copy link
Author

我那原来的插件整个移除之后,重新下了一个放进去,启动之后是这样

[2022-07-30T16:52:49.080] [ERROR] [aPad:2391949993] - 报错:xiaoyao-cvs-plugin
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'promise-retry' imported from C:\Users\Administrator\Desktop\Yunzai\Yunzai-Bot\plugins\xiaoyao-cvs-plugin\apps\sign.js
at new NodeError (node:internal/errors:372:5)
at packageResolve (node:internal/modules/esm/resolve:954:9)
at moduleResolve (node:internal/modules/esm/resolve:1003:20)
at defaultResolve (node:internal/modules/esm/resolve:1218:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
at ModuleWrap. (node:internal/modules/esm/module_job:80:40)
at link (node:internal/modules/esm/module_job:78:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

@ctrlcvs
Copy link
Owner

ctrlcvs commented Jul 30, 2022

看说明。标识了如果导包文件正常来说是cnpm i promise-retry以及cnpm i superagent

@1055169799
Copy link
Author

可以启动了。
另外有个问题,插件的自动签到和机器人本身的自动签到会冲突吗?比如一个账号签两次?

@ctrlcvs
Copy link
Owner

ctrlcvs commented Jul 30, 2022

目前的自动签到逻辑还在梳理,只有手动签到

@ctrlcvs ctrlcvs closed this as completed Jul 30, 2022
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