How to fix “error code 400: Rejected artifact download request: Parent “package-name”/- must be a folder”?

Issue: error code 400: Rejected artifact download request: Parent "package-name"/- must be a folder"

Reason: This error usually means that one of the requests is missing the '/api/npm/' prefix in the request URL, which causes the '-' directory to be cached in Artifactory as a file.

Resolution:  the solution for such matter is locating the offending "-" file and removing it manually.

Note: After deleting the file, make sure to pay attention that the requests are not missing the '/api/npm/' prefix in the URL, and you should not get this error again.