How can I authorise a private dependency (direct from another repo) in my site deployment?


I have a Nuxt 3 site which I deploy on Netlify.

I want to include a private repo (some common libraries) as an NPM dependency direct from GitHub, which is added like so:

npm i org/repo
"dependencies": {
  "@org/repo": "git+"

However, I know when it comes time to deploy, npm i will fail, as the repo is private.

What is the correct way to have Netlify install the private repo when it builds?

I’m not particularly dev-opsy, so I would appreciate a bit of hand-holding!


Hi @davestewart,

Thanks for reaching!

I found this Netlify Support Guide:

Could you give that a read and see if it helps?