0

I've got a simple NPM repository setup through GCP Artifacts and I've linked it to Unity as a custom scoped registry. I'm able to install new packages and see updates come through but I don't seem to be able to see all my available packages rather than having to install them all manually.

If I call https://europe-west1-npm.pkg.dev/PROJECT_NAME/REPOSITORY_NAME/v1/search?text=BASE_SCOPE with the right authentication credentials it just returns that it can't find anything

{
    "error": "Requested entity was not found."
}

/v1/all also returns the same even though that should list all the packages according to the NPM Registry API

I've also started a thread over at the Unity Forums as I thought this was an issue in the Unity Package Manager but it appears that GCP's NPM repository doesn't seem to behave, how can I get it to allow for searching so I can see my non-installed packages?

2
  • Have you checked with the Documentation Listing files Jun 14 at 12:43
  • I did yeah, the gcloud commands work and are able to list all the packages but it's the NPM api that doesn't want to cooperate here
    – MegaMiley
    Jun 15 at 6:08

1 Answer 1

0

According to Google's documentation it seems that you can only get a list of packages through the gcloud cli and it doesn't provide support for the NPM api. Thus this seems to currently not be possible

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.