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