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

导包错误 #207

Open
sine2cr opened this issue Jan 15, 2024 · 0 comments
Open

导包错误 #207

sine2cr opened this issue Jan 15, 2024 · 0 comments

Comments

@sine2cr
Copy link

sine2cr commented Jan 15, 2024

迁移到armv7架构的机器上后所有的js脚本都出现了这个问题
`
Error [ERR_REQUIRE_ESM]: require() of ES Module /root/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/p-cancelable/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:24)
at Object. (/ql/data/scripts/node_modules/got/dist/source/index.js:14:18)
at Object.initGotEnv (/ql/data/scripts/6dylan6_jdpro_main/jd_signbeanact.js:202:4492)
at Object.get (/ql/data/scripts/6dylan6_jdpro_main/jd_signbeanact.js:202:5453)
at /ql/data/scripts/6dylan6_jdpro_main/jd_signbeanact.js:82:15
at new Promise ()
at takePostRequest (/ql/data/scripts/6dylan6_jdpro_main/jd_signbeanact.js:81:16)
at async run (/ql/data/scripts/6dylan6_jdpro_main/jd_signbeanact.js:56:9)
at async /ql/data/scripts/6dylan6_jdpro_main/jd_signbeanact.js:40:13 {
code: 'ERR_REQUIRE_ESM'
}

Node.js v18.17.1
`

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

1 participant