Skip to content

Instantly share code, notes, and snippets.

@danklut
Created June 19, 2018 09:31
Show Gist options
  • Select an option

  • Save danklut/54c1c0a186acd379fa81ef22330ee969 to your computer and use it in GitHub Desktop.

Select an option

Save danklut/54c1c0a186acd379fa81ef22330ee969 to your computer and use it in GitHub Desktop.
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.
@danklut

danklut commented Jun 19, 2018

Copy link
Copy Markdown
Author

New Gist

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