npm audit not working on Windows using bash

Viewed 5088

I am using Mintty 2.8.4 as my terminal to install npm packages.

I installed an earlier version of an npm package called moment and I got warnings about vulnerabilities. One of the suggestions my terminal gave me was to run npm audit. On running that command my terminal doesn't recognize it. It throws a list of other recognized commands instead.

Can anyone help me with explaining how to run audit on this terminal?

I have attached a detailed image of the error and the terminal I am using.


printscreen of npm audit not working

2 Answers

It says exactly what you need to do:

Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info.

Related