fix: "unpublished by undefined" caused by tightened privacy policies.#3834
fix: "unpublished by undefined" caused by tightened privacy policies.#3834
Conversation
|
The npm registry isn't the only registry the cli talks to, can this be something that shows the name if it exists? Also we'll need tests. |
|
We'll likely need to change the "bug the author" copy cause that now makes no sense if there is no author listed. |
|
The "bug the author to publish it" copy is a relic from a time when lots of well-known JavaScript modules were "published" on github or someone's website, but not in the npm registry. So you'd have users that knew of a package, but that package wasn't in the registry, simply because no one had ever asked the author to publish it to npm. These days, publishing to npm is a pretty normal thing for module authors to do, so if something isn't published, it's more likely you just spelled it wrong or you're looking in the wrong registry. |
Now npm cli shows messages like this for unpublished projects when running
npm view(noteUnpublished by undefined):This simple fix just removes the
by undefinedpart.