[x] I used gofmt for formatting the code before submitting the pull request.
Updated NpmCommand class with a new function that configures Artifactory as a resolution server for dependencies.
This logic was extracted from NPM BuildDependencyTree flow in jfrog-cli-security and moved to one central place so it can be reused.
[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[x] I used gofmt for formatting the code before submitting the pull request.
Updated NpmCommand class with a new function that configures Artifactory as a resolution server for dependencies. This logic was extracted from NPM BuildDependencyTree flow in jfrog-cli-security and moved to one central place so it can be reused.