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

[email protected] postinstall: node lib/install.js #57

Open
HeMin0919 opened this issue Mar 10, 2022 · 1 comment
Open

[email protected] postinstall: node lib/install.js #57

HeMin0919 opened this issue Mar 10, 2022 · 1 comment

Comments

@HeMin0919
Copy link

internal/modules/cjs/loader.js:1174
throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: D:\vue3Test\hello-vue3\node_modules\cwebp-bin\lib\install.js
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1174:13)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: 'ERR_REQUIRE_ESM'
}

@Christopher-Hayes
Copy link

Reverting to v6.1.2 fixes this issue for me.

Probably related to #54

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