Skip to content

Instantly share code, notes, and snippets.

@danklut
Created June 19, 2018 09:31
Show Gist options
  • Save danklut/54c1c0a186acd379fa81ef22330ee969 to your computer and use it in GitHub Desktop.
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
Copy link
Author

danklut commented Jun 19, 2018

New Gist

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