NPM client:
audit 404 Not Found - POST http://<artifactory-hostname>/artifactory/api/npm/<npm-virtual-repository>/-/npm/v1/security/audits/quick Failed to fetch audit report for repo tst-npm. status: 404 cause: Virtual repository <npm-repository-name> does not have any npm audit providers. Aborting npm audit request... npm ERR! audit endpoint returned an error
Artifactory logs:
2023-07-12T10:30:01.048Z [jfrt ] [ERROR] [9b4c8be9eeaa0461] [a.n.r.NpmRequestHelperImpl:260] [ttp-nio-8081-exec-10] - Failed to fetch audit report for repo tst-npm. status: 404 cause: Virtual repository <npm-virtual-repository> does not have any npm audit providers. Aborting npm audit request...
This error can occur when an NPM remote repository is not included in the NPM virtual repository that receives the 'npm audit' request.
Resolution steps:
Ensure that an NPM remote repository is included in the NPM virtual repository configured in the .npmrc file and is capable of receiving the request.