Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading output for a taken name #26

Closed
prantlf opened this issue May 16, 2021 · 4 comments
Closed

Misleading output for a taken name #26

prantlf opened this issue May 16, 2021 · 4 comments

Comments

@prantlf
Copy link

prantlf commented May 16, 2021

When checking estar the output is the following:

prantlf@macik:~ npm-name estar
Error: Package `estar` doesn't exist
    at /Users/prantlf/.nvm/versions/node/v14.17.0/lib/node_modules/npm-name-cli/node_modules/package-json/index.js:62:11
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async squatter (/Users/prantlf/.nvm/versions/node/v14.17.0/lib/node_modules/npm-name-cli/node_modules/squatter/index.js:39:18)
    at async file:///Users/prantlf/.nvm/versions/node/v14.17.0/lib/node_modules/npm-name-cli/utilities.js:16:29
    at async Promise.all (index 0)
    at async checkNames (file:///Users/prantlf/.nvm/versions/node/v14.17.0/lib/node_modules/npm-name-cli/utilities.js:12:16)
    at async file:///Users/prantlf/.nvm/versions/node/v14.17.0/lib/node_modules/npm-name-cli/cli.js:79:19

Saying "Package estar doesn't exist" is wrong, because although there is no package with the name estar, the existing package es-tar will prevent the name estar from being used by another package.

@sindresorhus
Copy link
Owner

// @sholladay FYI

@prantlf
Copy link
Author

prantlf commented May 16, 2021

@sindresorhus, would you mind sharing your reason for closing this issue?

@sindresorhus
Copy link
Owner

Please look at the referenced commit. This was fixed.

@prantlf
Copy link
Author

prantlf commented May 17, 2021

Ah, thanks! I am sorry I missed the link to the commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants