- Go to website and copy token from website https://manage.fury.io/manage/YOUR_USERNAME/tokens
or
npm adduser --registry https://npm.fury.io/YOUR_USERNAME/
# set your username, password and email.
cat ~/.npmrc
# copy token from there
| storage: ./storage | |
| plugins: ./plugins | |
| web: | |
| title: Verdaccio | |
| auth: | |
| htpasswd: | |
| file: ./htpasswd | |
| uplinks: | |
| npmjs: | |
| url: https://registry.npmjs.org/ | |
| gem: | |
| url: https://npm.fury.io/YOUR_USERNAME/ | |
| auth: | |
| type: bearer | |
| token: YOUR_TOKEN | |
| packages: | |
| '@*/*': | |
| access: $all | |
| publish: $authenticated | |
| proxy: npmjs | |
| my-private-gemfury-package: | |
| access: $all | |
| publish: $authenticated | |
| proxy: gem | |
| '**': | |
| access: $all | |
| publish: $authenticated | |
| proxy: npmjs | |
| middlewares: | |
| audit: | |
| enabled: true | |
| logs: | |
| - {type: stdout, format: pretty, level: http |
or
npm adduser --registry https://npm.fury.io/YOUR_USERNAME/
# set your username, password and email.
cat ~/.npmrc
# copy token from there
Hey @juanpicado thanks for putting this together. We are able to pull from gemfury as an uplink like this for any non-scoped packages.. But for any package on gemfury that has any
@scope/namespacing we get403: error: invalid filenamein verdaccio.Example:
in config.yaml
in .npmrc:
no problems:
> npm install private-package1Works only with registry set to gemfury directly, not verdaccio proxy:
log in verdaccio server: