Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Cannot search connected npmjs packages from command line
-
I hooked up my feed to a local proget npm registry, and also npmjs.org.
I can see the test package I published, and I can see the packages in my feed.
I have it set to 1000(does this only allow 1000 in the feed?), but if I search for any of those packages from a command line(npm search lodash/angular/whatever) I get no results, but if I search for my test package it comes up.
I ran all of the scheduled admin tasks to rebuild the indexes.
Product: ProGet
Version: 4.7.11
-
The npm search command has been broken in npm for some time, as it downloads the entire package index and searches it locally. Due to the size of the index on npmjs.org, this stopped working for a lot of people due to npm OutOfMemory errors and various other issues.
Because of this, they deprecated this form of searching in the npm client in favor of a new search API, but it seems that only npm 4+ actually uses the new API.
Indexing all of npmjs.org also caused a lot of problems for our users due to the sheer amount of data involved, so we dropped indexing of any registry that supports the search API. Local packages are still returned in the /-/all endpoint, since this doesn't require the same server overhead, which is why you are still seeing those packages.
Basically, you may want to try the new npm client, or just stick to searching on the web for now.