tag: Node.js

Install private packages with Yarn

Once you have signed up for a Gemfury account and uploaded some npm packages, you can install them with Yarn. Setting up your global configuration To start using your private registry with Yarn, you will need to update your npm config and authenticate using your personal Gemfury credentials: npm config set registry https://npm.fury.io/USERNAME/ npm config set always-auth true npm login This will update your personal ~/.npmrc file with the following: 

Install private npm modules on Heroku

Once you have signed up for a Gemfury account and uploaded a few packages, you can individually install them on Heroku by specifying the tarball in your package.json or by fully switching the registry via .npmrc configuration. You can also find out more about Gemfury npm registry. Your secret Registry URL The secret registry URL is the npm endpoint for your Gemfury account and modules. Do not share this URL to keep your account private. 

Installing private npm modules

Once you have signed up for a Gemfury account and uploaded a few npm packages, you can install them via command-line or as package.json dependencies. Setting up your npm registry To start using your npm registry, you will need to update your npm config: npm config set registry https://npm.fury.io/USERNAME/ At this point, you can start to npm install public packages from your account. To publish and install private packages, you will first authenticate with your Gemfury credentials: