Artifactory have a default layout which is being assigned to every new NPM repository:
This is not working for NPM.
Artifactory should have the following layout:
Create a new repository layout with the following parameters:
Artifact Path Pattern
Folder Integration Revision RegExp
File Integration Revision RegExp
Then go to each of your NPM repositories (Local, Remote, and Virtual) and replace the layout from the edit repository configuration screen.