Why is npm update not removing or upgrading a few packages

  node.js, npm, windows

I just upgraded to the latest version of NodeJs. As part of my upgrade I ran npm -g upgrade. Here are the first few lines of output:

PS D:ProjectsNewEcommerceEcommerceUIClientApp> npm -g upgrade
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
...

I have a few questions I need help with…

I am fairly confident I am not using har-validator and I can safely remove it. But how do I check if it is used as a dependent to another package I am using? Same questions about uuid and request. Also, with regards to uuid, why is the upgrade not upgrading uuid? Does it break something in Windows to upgrade? Since all three lines are just WARN is it safe to just ignore them.

Source: Windows Questions

LEAVE A COMMENT