Authentication

Follow these steps to have access of all packages for both backend and frontend:

  1. Create an .npmrc file in your root project, this will content the registry and Auth token, like this:

@tradinos:registry=https://gitlab.com/api/v4/packages/npm/
//gitlab.com/api/v4/packages/npm/:always-auth=true
//gitlab.com/api/v4/packages/npm/:_authToken={Your GitLab Token}
  1. To add your own GitLab token, you can generate it from your account by following this steps:

  • Go to your profile

  • Select edit profile

  • Select the access token option in the sidebar

  • Add your token name

  • Choose (api , read_registry) scopes

  • Use it in the .npmrc file

Congrats!, now you have access to all packages.

Last updated