[Support Guide] Using private NPM modules on Netlify

Just wanted to share my experience in case it helps anyone in the future.

After a day of banging my head against the wall I managed to get my private module working with Netlify by adding curly brackets around the token in .npmrc as outlined in the original post, eg.

authToken=${FONTAWESOME_NPM_AUTH_TOKEN}

Unfortunately the curly brackets prevent yarn from accessing the env variable when working locally, bit of a pain but I just need to remember to add them in before any commits.

Thanks for the thread!

edit: on the plus side I’ve spent so much time reading docs and blogs I now know considerably more about using font awesome with react

1 Like