Unable to install any npm package

C:\Users\HP\Desktop\nodejsc>npm i underscore
npm WARN npm npm does not support Node.js v18.12.1
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\HP\AppData\Roaming\npm-cache_logs\2022-11-29T23_20_18_019Z-debug.log