Skip to content

Instantly share code, notes, and snippets.

@biilmann
Created October 14, 2015 22:07
Show Gist options
  • Save biilmann/0b2250095eedc188d0c9 to your computer and use it in GitHub Desktop.
Save biilmann/0b2250095eedc188d0c9 to your computer and use it in GitHub Desktop.
Quick Guide to Private NPM Modules on Netlify

Using NPM Private Modules on Netlify

Create a .npmrc file for your project like this:

//registry.npmjs.org/:_authToken=${NPM_TOKEN}

Then find your token inside the ~/.npmrc file in your home folder and set it as an NPM_TOKEN environment variable through netlify's admin UI.

@nathanbirrell
Copy link

@snandigam2
Copy link

The private packages located in GitHub under one project, I have 10-15 small Modules now,

my npmrc look like this

@organization:registry=https://npm.pkg.github.com

I don't have a token setup here, How to make it work in my scenario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment