Hey together,
currently my npm install fails. I am developing an Angular Application.
This is the Error Message
> opencollective postinstall
app/node_modules/core-js/modules/_typed-buffer.js:157
if(numberLength != byteLength)throw RangeError(WRONG_LENGTH);
^
RangeError: Wrong length!
at validateArrayBufferArguments (/app/node_modules/core-js/modules/_typed-buffer.js:157:39)
at new ArrayBuffer (/app/node_modules/core-js/modules/_typed-buffer.js:247:29)
at zlib.js:334:28
at NativeModule.compile (internal/bootstrap/loaders.js:285:5)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:220:8)
at loadNativeModule (internal/modules/cjs/helpers.js:23:9)
at Function.Module._load (internal/modules/cjs/loader.js:694:15)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/node_modules/node-fetch/index.js:12:12)
i am using macOS Catalina 10.15.4
and node = v12.14.1
can someone help me please?
Downgrading node to v10.14.2 fixes the issue for me.
The above advice helped me. I was on node v10.22 and I changed it to v10.12 and fixed this error.
Node 10.14.2 worked for me too - which versions of core-js are safe for which versions of node? Is there a compatibility list somewhere?
Could you add a reproducible example?
Most helpful comment
Downgrading node to v10.14.2 fixes the issue for me.