Here is the error I get:
npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests.
I found that the answer given at https://npm.community/t/your-configured-registry-https-registry-npmjs-org-does-not-support-audit-requests/3600/6 worked, where none of the above answers helped:
delete your node_modules folder then try running npm install --> npm update --> npm audit
Try running npm update
and then npm audit
. This should fix the problem.
You could have it when in your package.json
you have something like "PACKAGE_NAME": "github:USERNAME/PACAKGE_NAME"
, or any other different pattern rather than the typical one, i.e. "PACKAGE_NAME": "PACKAGE_VERSION"
.
First
npm install -g npm
then
npm audit
may solve your problem