npm Registry

With an npm registry on Artifactory, and vulnerability analysis on Xray, JFrog offers an end-to-end solution covering the full lifecycle of your npm packages to manage development,Read More >

security, artifact flow control and distribution.Read Less >

npm Registry Features:

WHAT ARTIFACTORY AS AN NPM REGISTRY MEANS TO YOU

Documentation

npm Registry Wiki

Whitepaper

npm: 10 Reasons to use a Binary Repository Manager When Developing with Node.js

Screencast

Setting up an npm registry with JFrog Artifactory in less than one minute

Blog

npm Packages with JFrog CLI

Blog

Five Ways to Meet Deadlines When Developing with NPM

Blog

Protect Your Code with npm audit & JFrog Xray

Blog

Artifactory: Your NPM Registry for Bit

npm FAQ

How do I set up npm to work with JFrog Artifactory?

To set up npm with JFrog Artifactory, add the JFrog registry to your .npmrc file by running:

npm config set registry /api/npm/

Replace with your JFrog instance URL and with your repository name.

How do I authenticate npm with JFrog Artifactory?

You can authenticate npm with JFrog by running:

npm login –registry=/api/npm/

Provide your JFrog username, password, and email, or use an API key for authentication.

How do I publish an npm package to JFrog Artifactory?

To publish a package, ensure your .npmrc is configured, then run:

npm publish –registry=/api/npm/

This will upload your package to the specified JFrog repository.

How do I install an npm package from JFrog Artifactory?

To install a package from JFrog Artifactory, use the command:

npm install –registry=/api/npm/

This fetches the package from your JFrog repository.

How do I troubleshoot npm errors when using JFrog Artifactory?

If you encounter issues, try clearing the npm cache:

npm cache clean –force

If problems persist, check your .npmrc configuration and ensure the JFrog URL and credentials are correct.

Trusted Releases Built For Speed

About npm

npm is a package manager used for Javascript, maintained by npm, Inc. (a subsidiary of GitHub).
Want to learn more about JFrog integration with NPM?