Using private NPM modules
Get an authentication token using the npm CLI:
$ npm token create --read-only
npm password:
ââââââââââââââââââŦâââââââââââââââââââââââââââââââââââââââ
â token â 1a583a54-5515-4058-a3c4-047e5f699d27 â
ââââââââââââââââââŧâââââââââââââââââââââââââââââââââââââââ¤
â cidr_whitelist â â
ââââââââââââââââââŧâââââââââââââââââââââââââââââââââââââââ¤
â readonly â true â
ââââââââââââââââââŧâââââââââââââââââââââââââââââââââââââââ¤
â created â 2019-01-08T20:53:17.461Z â
ââââââââââââââââââ´âââââââââââââââââââââââââââââââââââââââ
Configure an NPM_TOKEN
secret in your Appflow environment using the generated token as value:
Check in a .npmrc
file in the root of your project directory with the following line:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}