devopsdude3113
@devopsdude3113
Best posts made by devopsdude3113
Latest posts made by devopsdude3113
-
RE: npm GitHub Packages(https://npm.pkg.github.com) as Connector Feed
Hi @rhessinger ,
appreciate your support here.
Yeah I have been searching many different ways hehe but no luck.
I've tried even locally with
npm install @owner/package
without any luck..npmrc
file looks like this if it helps://http://proget-server/npm/github-feed:_auth=<auth_token> registry=http://proget-server/npm/github-feed @owner:registry=http://proget-server/npm/github-feed
I just added the last line of
@owner
as to determine the scope, and still no luck.I tried looking in the logs within my Proget Server and I don't see any authentication errors (not sure if they would show up)
I do see the requests coming through but all I see is:
2023-10-24 11:44:49 An error occurred processing a GET request to http://proget-server/npm/github-feed/@owner%2fnpm-package: Package was not found. 2023-10-24 11:44:49 info: Microsoft.AspNetCore.Hosting.Diagnostics[2] 2023-10-24 11:44:49 Request finished HTTP/1.1 GET http://proget-server/npm/github-feed/@owner%2fnpm-package - - - 404 64 application/json 540.1975ms 2023-10-24 11:44:49 info: Microsoft.AspNetCore.Hosting.Diagnostics[1] 2023-10-24 11:44:49 Request starting HTTP/1.1 GET http://proget-server/npm/github-feed/@owner%2fnpm-package - - 2023-10-24 11:44:50 A 404 error occurred in github-feed: Package was not found. 2023-10-24 11:44:50 A 404 error occurred in github-feed: Package was not found.
updated the actual
@myownername
by just@owner
andpackage-name
by `npm-package to avoid any unintentional info going out -
RE: npm GitHub Packages(https://npm.pkg.github.com) as Connector Feed
Hi @rhessinger,
Interesting, thank you for that.
So I was able to create the connector but it seems that I am no viewing any packages yet
On the
Feed > mynpm-feed
I get the following message:There are no local Packages in this feed and the connectors did not list any remote packages. This may happen if there was an error connecting to the remote feed or the connector is configured to filter packages.
I've tried pulling locally too while pointing my
.npmrc
file to my ProGet instance and I'm getting Package not found.What could be a reason that it is not pulling packages, but no error is being thrown at the connector level ? Any ideas?
Thanks
-
RE: npm GitHub Packages(https://npm.pkg.github.com) as Connector Feed
Hi @rhessinger,
thank you so much for the help! I was able to finally connect to it! Also thanks for adding the documentation!!
Quick question, you mentioned
certain things like package count and the search API are not working
Would this statement also include the list of packages in
Feeds > mynpm-feed
? the list of packages here wouldn't show up correct ? but they should show up if in the UI if search for the package exactly ?Or would the search (and finding) of the package only work if I pull it locally against my Proget registry ?
Thanks again!
-
npm GitHub Packages(https://npm.pkg.github.com) as Connector Feed
I'm trying to create a Connector Feed for npm packages from GitHub Packages. I was able to successfully do this with NuGet Packages without any issues. However when trying to auth with npm I'm getting the following error:
Unable to query https://npm.pkg.github.com/
I've tried https://npm.pkg.github.com/OWNER as the URL I've tried using @NAMESPACE:registry=https://npm.pkg.github.com without any luck.
I couldn't find any docs on how to actually do this. Has anybody done this and know what is the correct format to authenticate appropriately ?