imagemin / cwebp-bin

cwebp bin-wrapper that makes it seamlessly available as a local dependency
https://developers.google.com/speed/webp
MIT License
93 stars 36 forks source link

cwebp-bin@7.0.1 postinstall: `node lib/install.js` #57

Open HeMin0919 opened 2 years ago

HeMin0919 commented 2 years ago

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 commented 2 years ago

Reverting to v6.1.2 fixes this issue for me.

Probably related to #54