title: How can I use npm-install with --build-name and --build-number command options as a non-admin user in JFrog CLI?
body: <h2>Description</h2>
  
  <p>I am trying to set up JFrog’s Artifactory Pro (v 6.0.1) to store and cache dependencies of my projects. I want to use JFrog CLI to collect and publish the npm-build information to Artifactory just like it is described in this (<a href="https://jfrog.com/blog/npm-flies-with-jfrog-cli/" rel="nofollow noreferrer">https://jfrog.com/blog/npm-flies-with-jfrog-cli/</a>) blog-post, but I want to be able to do it as a <strong>non</strong>-admin user.</p>
  
  <h2>Setup</h2>
  
  <p>Artifactory contains a virtual repository called <em>npm</em>, that is a collection of a local (named <em>npm-local</em>) and a remote (named <em>npm-remote</em>) repository.</p>
  
  <p>There are two users: the user called <em>admin</em> that has admin access and a user called <em>developer</em> that does not have admin access.</p>
  
  <p>Config for JFrog CLI:</p>
  
  <pre><code># create a configuration for the admin
  jfrog rt config --user=admin \
      --password=admin \
      --url=http://localhost:8081/artifactory \
      --interactive=false rt_admin
  
  # create a configuration for the developer
  jfrog rt config --user=developer \
      --password=developer \
      --url=http://localhost:8081/artifactory \
      --interactive=false rt_dev
  </code></pre>
  
  <h2>What I am doing</h2>
  
  <p>For this test I am trying to build the simple-node-js-react-npm-app (<a href="https://github.com/jenkins-docs/simple-node-js-react-npm-app" rel="nofollow noreferrer">https://github.com/jenkins-docs/simple-node-js-react-npm-app</a>) and publish it to the local npm repository in Artifactory using the following JFrog CLI commands:</p>
  
  <pre><code>jfrog rt npm-install npm \
      --build-name=simple \
      --build-number=1.0.0 \
      --server-id=rt_dev
  </code></pre>
  
  <p>this produces the following the following error just before the command is done (if errors during npm-install phase are ignored):</p>
  
  <pre><code>[Info] Collecting dependencies information, this might take several minuets...
  [Error] Artifactory response: 400 Bad Request
  For permissions reasons AQL demands the following fields: repo, path and name.
  </code></pre>
  
  <p>When i go on with</p>
  
  <pre><code>jfrog rt npm-publish npm \
      --build-name=simple \
      --build-number=1.0.0 \
      --server-id=rt_dev
  jfrog rt build-publish simple 1.0.0 --server-id=rt_dev
  </code></pre>
  
  <p>the freshly published artifact has zero dependencies.</p>
  
  <p>If publish the same way as an admin</p>
  
  <pre><code>jfrog rt npm-install npm \
      --build-name=simple \
      --build-number=1.0.1  \
      --server-id=rt_admin
  jfrog rt npm-publish npm \
      --build-name=simple \
      --build-number=1.0.1 \
      --server-id=rt_admin
  jfrog rt build-publish simple 1.0.1 --server-id=rt_admin
  </code></pre>
  
  <p>i get over 1000 dependencies.</p>
  
  <p>How can i get the same result as a non admin user?</p>