# Authenticating with Github Packages
- Generate a personal access token: navigate to Github tokens (opens new window) or (Settings > Developer settings > Personal access tokens)
- Click
Generate new token - From permissions select
read:packages( Download packages from GitHub Package Registry ) and generate the token - Copy the generated token
- Open or create a
~/.npmrcfile and add the next line replacingTOKENwith the copied token//npm.pkg.github.com/:_authToken=TOKEN - Now you can do npm install without problems
More info on Configuring npm for use with GitHub Packages (opens new window).