4

Has anyone been able to get CI builds working with fontawesome pro? Locally my build and fontawesome pro works because I've run these commands

npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && \
npm config set "//npm.fontawesome.com/:_authToken"

However my CI build fails with the message

npm ERR! 404 Not Found: @fortawesome/fontawesome-pro@5.7.1

I've tried setting a .npmrc file but it didn't help. I also tried adding fontawesome's repo in service connections.

1
  • Did you try to run the commands above during the CI build? Feb 11, 2019 at 10:22

1 Answer 1

5

You should set the npm config to project level, by adding a .npmrc in the same folder as package.json

The contents of the .npmrc should be

@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken={your token}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.