Private NPM registry with Google Artifact Registry

Setting up an IAM account with the right privileges and an artifact project

Giving IAM privileges to users.

Publishing your first package

{“name”: “@quillbot/demo-repo”,“version”: “1.0.0”,“description”: “”,“main”: “index.js”,“scripts”: {“test”: “echo \”Error: no test specified\” && exit 1",“ar-login”: “npx google-artifactregistry-auth — repo-config=./.npmrc”},“license”: “ISC”}

Hurraaaaaaaaaaay and you’ve hosted your very own artifact registry!!!!!!!


  1. To use the package in your projects run steps 1–4 in the repo you want to use the package, run npm i [pacakge-name] to download the package.
  2. Due to restrictions from npm, you’ll have to update the version on your npm package if you have to publish an update to the package.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Sometimes it is the people no one can imagine anything of, do the things no one can imagine.