I’ve followed the instructions and still having no luck in installing private packages from a github registry during deployment builds.
The same .npmrc and private access token I’m using are working locally.
I’m even trying cat .npmrc at the beginning of my install command to debug whether or not the issue is with my NPM_RC env var configuration but the generated file is not there.
Running "install" command: `cat .npmrc && npm i`...cat: .npmrc: No such file or directoryError: Command "cat .npmrc && npm i" exited with 1I expect the file to be there as per the documentation.
This is my variable:
registry=https://registry.npmjs.org/@{namespace}:registry=https://npm.pkg.github.com///npm.pkg.github.com/:_authToken={PAT}I’ve tried with and without the trailing slashes. I’ve tried setting it through Terraform (Vercel API) and via the Vercel UI.
I’m attempting this on a preview deployment.
It’s worth noting that the branch I’m on used to have a .npmrc file committed which I then removed after I read the documentation of how to actually make this work on Vercel.
Thought I’d bring that up because I read a thread where someone mentioned that having the file already in your project could cause issues.