i updated my nodejs to the latest stable version v15.7.0.my npm version is now 5.5.1 I tried commands C:\Users\Asus>npm update -g
and C:\Users\Asus>npm install -g npm@latest
to updating npm.but i got this errors each time:
npm WARN npm npm does not support Node.js v15.7.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\Asus\AppData\Roaming\npm-cache\_logs\2021-01-28T11_03_53_376Z-debug.log
any idea how can i fix it?
i found the solution : https://github.com/nodejs/help/issues/2874#issuecomment-663661148
i deleted npm and npm cache folders in Appdata>Roaming and then reinstalled nodejs