-
Notifications
You must be signed in to change notification settings - Fork 3
Description
install后run提示找不到'wechaty-puppet-mock'组件,单独安装后运行成功了,但是padlocal无法登录
[root@hcss-ecs-43e5 chatgpt-wechaty]# npm run dev
chatgpt-padlocal@1.0.0 dev
tsx src/index.ts
(node:228260) ExperimentalWarning:--experimental-loader
may be removed in the future; instead useregister()
:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///home/chatgpt-wechaty/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Usenode --trace-warnings ...
to show where the warning was created)
Error: Cannot find module 'wechaty-puppet-mock'
Require stack:
- /home/chatgpt-wechaty/src/robot.ts
- /home/chatgpt-wechaty/src/index.ts
at Function. (node:internal/modules/cjs/loader:1244:15)
at Function.d.default._resolveFilename (/home/chatgpt-wechaty/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:1479)
at Function._load (node:internal/modules/cjs/loader:1070:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Module.require (node:internal/modules/cjs/loader:1335:12)
at require (node:internal/modules/helpers:136:16)
at /home/chatgpt-wechaty/src/robot.ts:3:28
at Object. (/home/chatgpt-wechaty/src/robot.ts:3:3)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
扫码后提示padlocal应用版本过低,我使用的是7天的试用token:
[2025-01-15T23:53:50.438] [INFO] ChatRobot - Scan QR Code to login: 3
[2025-01-15T23:53:50.438] [INFO] ChatRobot - Scan Status: Scanned
[2025-01-15T23:54:05.710] [INFO] ChatRobot - Scan QR Code to login: 4
[2025-01-15T23:54:05.710] [INFO] ChatRobot - Scan Status: Confirmed
23:54:06 ERR [Request] [tid:ef9970a2], padlocal grpc request failed: 1, error: Error: 2 UNKNOWN: [tid:ef9970a2] wechat bad request error: 你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至最新版下载页面。
23:54:06 ERR start client failed: VError: [tid:ef9970a2] request has been cancelled for reason: SERVER_ERROR: 2 UNKNOWN: [tid:ef9970a2] wechat bad request error: 你的应用版本过低,请升级至最新版本后再登录。点击“确定”后将跳转至最新版下载页面。
at Request._failAllPendingRequest (/home/chatgpt-wechaty/node_modules/padlocal-client-ts/dist/Request.js:265:19)
at ClientDuplexStreamImpl. (/home/chatgpt-wechaty/node_modules/padlocal-client-ts/dist/Request.js:56:18)
at ClientDuplexStreamImpl.emit (node:events:524:28)
at Object.onReceiveStatus (/home/chatgpt-wechaty/node_modules/@grpc/grpc-js/build/src/client.js:410:28)
at Object.onReceiveStatus (/home/chatgpt-wechaty/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
at /home/chatgpt-wechaty/node_modules/@grpc/grpc-js/build/src/resolving-call.js:93:78
at processTicksAndRejections (node:internal/process/task_queues:85:11)
23:54:07 INFO [PuppetPadlocal] start login with type: QrLogin
请问作者如何解决padlocal无法使用的问题呢?