David Rivers
David Rivers

Reputation: 2945

NPM search remote packages

For the life of me, I cannot figure out how to search remote NPM packages in my installation of version 0.2.19. npm ls and npm search (one an apparent alias of the other) display only locally installed packages. The associated help dialog/manpage lacks an obvious answer, except this ambiguous reference to a configuration option:

CONFIGURATION

listopts Default: ""

   A whitespace-separated list of extra args that are always passed to npm ls

   For example: listopts = remote

   npm ls

   The output here will always filter by remote

Should I conclude that the only way for npm to search remote repositories is to add a setting in a configuration file, or is there a command that I can use?

Upvotes: 2

Views: 4957

Answers (1)

Raynos
Raynos

Reputation: 169451

raynos@raynos-MS-7681:~$ npm search ncore
npm http GET https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1330640201000
npm http 200 https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1330640201000
NAME   DESCRIPTION                        AUTHOR   DATE              KEYWORDS
ncore  Core library for your application  =raynos  2012-02-28 11:49  core archit
raynos@raynos-MS-7681:~$ npm --version
1.1.0

Upvotes: 3

Related Questions