依赖安装成功,但脚本还是无法运行 #1674
Unanswered
jiuyaozhuce
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
开始安装依赖 @sindresorhus/is,开始时间 2022-10-26 22:30:11
Progress: resolved 0, reused 1, downloaded 0, added 0
WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
Progress: resolved 283, reused 282, downloaded 0, added 0
Already up to date
WARN @sindresorhus/is has no binaries
Done in 2.1s
Progress: resolved 283, reused 282, downloaded 0, added 0, done
依赖安装成功,结束时间 2022-10-26 22:30:14,耗时 3 秒
开始执行... 2022-10-26 22:33:51
🔔京东CK检测, 开始!
====================共3个京东账号Cookie=========
==================脚本执行- 北京时间(UTC+8):2022-10-26 22:33:52=====================
KingRan 频道通知:https://t.me/KingRan521
/ql/data/scripts/node_modules/got/dist/source/create.js:14
const is_1 = require("@sindresorhus/is");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /root/.local/share/pnpm/global/5/.pnpm/@sindresorhus[email protected]/node_modules/@sindresorhus/is/dist/index.js from /ql/data/scripts/node_modules/got/dist/source/create.js not supported.
Instead change the require of index.js in /ql/data/scripts/node_modules/got/dist/source/create.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/ql/data/scripts/node_modules/got/dist/source/create.js:14:14)
at Object. (/ql/data/scripts/node_modules/got/dist/source/index.js:14:18)
at Object. (/ql/data/scripts/KingRan_KR/jd_CheckCK.js:9:13) {
code: 'ERR_REQUIRE_ESM'
}
执行结束... 2022-10-26 22:33:52 耗时 1 秒
Beta Was this translation helpful? Give feedback.
All reactions