Broke my NPM help

I downgraded npm to v-5.5.1 like mosh had said however node is still version 20.11.0 and those are not compatible. I’ve tried cleaning cache, updating node version, reinstalling node, deleting npm manually, and it keeps giving me the same error

C:\Users\lmcar\npm-demo>npm install latest-version
npm WARN npm npm does not support Node.js v20.11.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can’t make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lmcar\AppData\Roaming\npm-cache_logs\2024-02-09T23_40_51_932Z-debug.log

$ npm install npm@latest -g
npm WARN npm npm does not support Node.js v20.11.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can’t make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
npm WARN npm You can find the latest version at https://nodejs.org/
WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above.

npm[30332]: at c:\ws\src\node_zlib.cc:585

Assertion failed: args.Length() == 7 && “init(windowBits, level, memLevel, strategy, writeResult, writeCallback,” " dictionary)"

----- Native stack trace -----

1: 00007FF667DF6E7B node::SetCppgcReference+16075
2: 00007FF667D6D996 v8::base::CPU::num_virtual_address_bits+79190
3: 00007FF667D6DDA5 v8::base::CPU::num_virtual_address_bits+80229
4: 00007FF667C5DF48 RSA_meth_get_flags+110488
5: 00007FF668793F0E v8::SharedValueConveyor::SharedValueConveyor+416270
6: 00007FF668793B0A v8::SharedValueConveyor::SharedValueConveyor+415242
7: 00007FF668793DCF v8::SharedValueConveyor::SharedValueConveyor+415951
8: 00007FF668793C40 v8::SharedValueConveyor::SharedValueConveyor+415552
9: 00007FF66888EEAE v8::PropertyDescriptor::writable+676878
10: 00007FF668800550 v8::PropertyDescriptor::writable+92848
11: 00007FF6687FDA96 v8::PropertyDescriptor::writable+81910
12: 00007FF66894B2B6 v8::PropertyDescriptor::writable+1447958
13: 00007FF668800550 v8::PropertyDescriptor::writable+92848
14: 00007FF6687FDA96 v8::PropertyDescriptor::writable+81910
15: 00007FF66894B2B6 v8::PropertyDescriptor::writable+1447958
16: 00007FF668800550 v8::PropertyDescriptor::writable+92848
17: 00007FF5E8A6623E

----- JavaScript stack trace -----

1: Zlib (C:\Users\lmcar\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\minizlib\index.js:130:19)
2: Unzip (C:\Users\lmcar\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\minizlib\index.js:323:5)
3: write (C:\Users\lmcar\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:289:23)
4: ondata (node:internal/streams/readable:1007:22)
5: emit (node:events:518:28)
6: addChunk (node:internal/streams/readable:559:12)
7: readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
8: Readable.push (node:internal/streams/readable:390:5)
9: node:internal/streams/transform:178:12
10: PassThrough._transform (node:internal/streams/passthrough:46:3)