Cannot install yjs - zlib: incorrect data check


I cannot seem to install yjs with NPM or Yarn because I keep running into Zlib data check errors. Has anyone else experienced this? If so, how do you fix it?

npm version: 6.14.15
node version: v14.18.0

Here’s from the NPM log file

28 error code Z_DATA_ERROR
29 error errno -3
30 error zlib: incorrect data check
31 verbose exit [ -3, true ]

Updated to node v16.10.0 & npm 7.24.0 solved the issue