Skip to content

Enabling private github packages #24554

Discussion options

You must be logged in to vote

Hi @jeconneely,

Thank you for being here! I’m sharing the reply from our support team as it might help someone in the same situation:

npm ERR! Remove the ‘private’ field from the package.json to publish it.

npm has a confusing definition of private packages. They are packages that should never be published anywhere (hence the error).

What we mean by private packages is packages that are associated with a private repository. You will need a PAT with access to that repository and the read:packages scope in order to access them

How do we enable private repositories?

You should remove the private field and instead associate the package with a private repository.

See: https://help.github.c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment