Install private npm modules on Heroku

Once you have signed up for a Gemfury account and uploaded a few packages, you can install packages from your account by switching the registry via your app’s .npmrc configuration. Find out more about Gemfury npm registry.

Your npm registry URL

This registry URL is the npm endpoint for your Gemfury account and modules:

You can also access your account via our blending proxy that, in addition to serving your private packages, will fall back to the public npm index if a named package is not available in your account:

Find out how to retrieve your Registry URL.

Use Gemfury as your npm registry

After selecting one of the npm registry endpoints above, you can enable Gemfury as the default npm registry for your Heroku app via .npmrc configuration.

You can do this by adding the following {app-dir}/.npmrc file to the root directory of your project:


And then setting your Gemfury secret token in your app’s configuration:

heroku config:set FURY_AUTH="5f..03C"

Learn more about using Gemfury’s npm registry.