You want to use a private NPM package (probably under @funfunfunco domain)
Heroku needs access to the NPM domain, and this is done using NPM TOKEN.
- Go to your Heroku app and add new ENV variable:
NPM_TOKEN=7ff9af33-a68e-45fe-b675-c6a98a20d733 - Create
heroku_prebuild.shin the same folder wherepackage.jsonis and write to it:echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc - Go to
package.jsonand make it something like this: