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:
Edit your
package.json
file and add apublishConfig
section to a local repository:"publishConfig":{"registry":"http://localhost:8081/artifactory/api/npm/npm-local/"}
Provide a local repository to the
npm publish
command:npm publish --registry http://localhost:8081/artifactory/api/npm/npm-local/