How to update npm in node-red addon

I installed node-red on home assistant os as an add-on after the automation created in node-red is very slow. I looked in node-red’s log and it shows the following message:

61 packages are looking for funding
run npm fund for details

7 vulnerabilities (5 moderate, 2 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.
npm notice
npm notice New minor version of npm available! 10.5.0 → 10.7.0
npm notice Changelog:
npm notice Run npm install -g [email protected] to update!

How can I run command npm to fix node-red in home assistant os?

You don’t. Those will be updated with the addon. You will almost always get a message asking you to update via npm, it can safely be ignored.