Getting started on Gemfury with JavaScript

Install packages with Yarn

You can configure your Yarn project to use Gemfury as the primary source of npm packages. To start, commit a .yarnrc configuration to the root directory of your project:

# PROJECT_DIR/.yarnrc
registry "https://npm.fury.io/USERNAME/"

Subsequently, each collaborator would locally authenticate using their Gemfury credentials before running yarn commands:

npm config set always-auth true
npm login --registry=https://npm.fury.io/USERNAME/

It is important to include a trailing slash in the registry URL, otherwise yarn may incorrectly connect to our registry.

Blended-index registry

The npm.fury.io endpoint only enables access to packages in your Gemfury account, however, you can similarly configure to use the blended index registry URL to combine your account index with the public index:

# PROJECT_DIR/.yarnrc
registry "https://npm-proxy.fury.io/USERNAME/"

Working with scoped packages
Configure Gemfury registry for all Yarn projects


Next