To install the UI package, you must authenticate to the GitHub package registry. Additionally, you need to be a member of the SmartAC.com GitHub organization, as packages from internal projects cannot be accessed anonymously.
To authenticate, you must create a personal access token (classic) with the scope set to read:packages. Follow these steps to create your token:
read:packages in the Scopes section.Once created, copy the token immediately as it will not be displayed again. For additional details, refer to the GitHub documentation on personal access tokens..
In your project root directory, create or edit a .npmrc file and add the following:
//npm.pkg.github.com/:_authToken="${NPM_TOKEN}"
@smartacteam:registry=https://github.com/smartacteam/ui
Next, install the latest version of the UI package by running the following command:
NPM_TOKEN='<token>' npm install @smartacteam/ui
Replace <token> with the personal access token you created earlier.