Google Cloud Functions (Node.js) Install Private Modules

March 9, 2020
Fontawesome Pro

If you have installed Fontawesome Pro, check ~/.npmrc.

@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=XXX

Goto your firebase project directory, and copy the content of ~/.npmrc to functions/.npmrc.

cd functions
cat  ~/.npmrc > .npmrc

Run deployment.

firebase deploy

or

firebase deploy --only functions:FUNCTION_NAME

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.