Report this

What is the reason for this report?

Install node package from private Github packages repo

Posted on December 14, 2022

I have a private library built and published to the private Github packages registry, I was expecting to be able to specify a npmrc with my scoped registry and auth like this;

//npm.pkg.github.com/:_authToken=${TOKEN_FOR_GITHUB}

but if I use .npmrc with a yarn.lock in the project it errors with,

‘Warning: a .npmrc file was found. yarn does not read .npmrc files, use .yarnrc instead if needed.’

So I tried making a .yarnrc file and that just got me a 401 response, and I also tried a .yarnrc.yml and that also got me a 401.

I cant see another question with this answered and my project depends on being able to install this package

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.