What is the method to update devDependencies using NPM?

Using NPM, updating development packages is proving tricky.

When I run npm refresh, it updates only the packages listed under prodModules, leaving those under devModules unchanged. I noticed that running npm install-all installs the development packages without issue, yet a similar update command like npm refresh-all doesn’t work as expected. Has anyone found an effective way to handle updates for development dependencies?

hey i found that deleting node_modules and package-lock, then running npm install, updates both prod and dev deps. not the best, but it worked for me