I have a private artifactory in my office. I use verdaccio for download npms from internet and after it in insert them to private artifactory. It works wonderfool. I bought Font Awesome pro version , and want to download npm. How can I pass to verdaccion security token ? Without token I can't download npm
tnx
You can actually set up a token peer
uplink
which will be included in each request:With Verdaccio there is 2 ways to achieve what you need:
If you want to customize your own environment variable.
or us the default
NPM_TOKEN
recognized by verdaccio.This is handy on CI environments where you are afraid to leak sensitive information.
I'd recommend do this only for local development, in any other case please use option 1.
For more information refer to the official documentation about uplinks.
Remember you can have different uplinks that refers to the same registry, eg:
In this scenario, the package would have access to two sources protected by token, if one return 404 the second proxy will try to resolve your request.