0

I had created my react application as a package using github CI/CD pipeline(using github actions). Everything is going fine. But when I trying to install that created package, I'm facing a issue i.e.,

npm ERR! 403 403 Forbidden - GET https://npm.pkg.github.com/@ltts-dtp-appstudio%2fform - Permission permission_denied: The token provided does not match expected scopes.

I had created a github PAT fine grained token with all the permissions required. But even then facing the same above error.

403 forbidden error

I'm trying to install the package create in github through CI/CD pipeline(using GITHUB actions).

I was expecting that package to be installed and should be added in dependencies but getting an 403 forbidden which says permission denied

Can anyone suggest me how to solve this error?

Pranathi
  • 19
  • 1

1 Answers1

0

Thanks everyone who ever tried to help me on this. This issue has been resolved. In the application which I wanted to install the package, I have created a .npmrc file in root path and added this part into the file

@username:registry = https://npm.pkg.github.com/ //npm.pkg.github.com/: _authToken = token

Here at username replace with your username and at token - first create a classic token with read:packages enabled and replace that token with the created one.

Pranathi
  • 19
  • 1