Sucheta Shrivastava
Sucheta Shrivastava

Reputation: 293

Published an npm but its nowhere to be seen on the internet

I just published an npm while following the procedure and it is found as published on https://www.npmjs.com/ also.

Like -

npm package

However, I am unable to find it on the internet when I search it.

Upvotes: 1

Views: 825

Answers (2)

Steven Spungin
Steven Spungin

Reputation: 29179

NPM now sets a header on many of their new pages that instructs web-crawler bots to NOT INDEX the content of your module page. This means no search results directly linked to NPM.

The header is:

X-Robots-Tag: noindex

If that header shows up in your NPM, good luck finding a way to have it removed.

Upvotes: 1

Nithin Thampi
Nithin Thampi

Reputation: 3689

Not all the packages you publish come to the top of google search results.

Google searches the results across a wide range of content across internet. Not just npm registry.The search results are based on the relevance of search term with content across the internet. Results from other websites may also pop up.

It can also depend on popularity(usage) of the package and other criteria which I'm not aware of. Since you have published the package recently, google won't be even aware of it. Next time when the google crawlers crawl npmjs they might see the package(May be its possible that npm registry might have custom feed pushing to google depending on package usage rather than google crawlers crawl them) .

So don't worry if it doesn't appear in google search. Your package can be searched from npmjs and is available for all to use, and can be shared with everyone. May be eventually you reach the top of google search results :)

Also you can add relevant description, keywords to your package.json that so that people can find it easily in npm registry search. Right now it shows up only if its an exact package name match.

Upvotes: 2

Related Questions