npm

Node Package Manager - included with Node.js for JavaScript and TypeScript projects.


Using npm Locally

Ensure the Desktop App is installed, running, and configured for npm.

Connect Desktop App →

Simply use your standard commands - the Desktop App handles authentication automatically:

Upload:

npm publish

Download:

npm install <package-name>

Alternatively: Manual Configuration

1. Generate an Access Token

Create an access token →

2. Configure

Create or edit .npmrc in your project or home directory:

registry=https://<your-fly-subdomain>.jfrog.io/artifactory/api/npm/npm/
//<your-fly-subdomain>.jfrog.io/artifactory/api/npm/npm/:_authToken=<your-fly-token>

3. Upload

npm publish

4. Download

npm install <package-name>

Using npm in CI/CD

npm is fully supported in GitHub Actions workflows configured with JFrog Fly.

Learn how to configure GitHub Actions →


Back to JavaScript & TypeScript →