Set Your Credentials for npm Publish
The npm command line tool requires that sensitive operations, such as
publish are authenticated as described under Authenticating the npm Client above.
Deploy Your npm Packages
There are two ways to deploy packages to a local repository:
package.jsonfile and add a publishConfig section to a local repository:
Provide a local repository to the
npm publish --registry http://localhost:8081/artifactory/api/npm/npm-local/