We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Installing an aliased package with no name will actually install the package 'undefined'
Installing an aliased package with no name should fail.
npm init
npm install a@npm:
npm warn deprecated undefined@0.1.0: this package has been deprecated added 1 package, and audited 2 packages in 763ms found 0 vulnerabilities
{ "name": "bug", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bug", "version": "1.0.0", "license": "ISC", "dependencies": { "a": "npm:undefined@^0.1.0" } }, "node_modules/a": { "name": "undefined", "version": "0.1.0", "resolved": "https://registry.npmjs.org/undefined/-/undefined-0.1.0.tgz", "integrity": "sha512-NkvZ+cpfGNrQvaCMPr2DytKuQfUTTUUloyqxhjLIzUm6OIBBgjH0zUIObsDejlvNHXBmXNCEt4IOFE6HB+ourA==", "deprecated": "this package has been deprecated" } } }
I think the issue is in the npa function of npm-package-arg, I will submit a PR to fix this, but wanted to file an issue first.
npa
npm-package-arg
The text was updated successfully, but these errors were encountered:
Presumably it should fail to install, since the name field is required?
Sorry, something went wrong.
Yes, it should fail.
fix: throws an err when alias is without name (#184)
59d53b3
throws error when alias spec is without name. e.g. ( foo@npm: ) Fixes: npm/cli#7590
milaninfy
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Installing an aliased package with no name will actually install the package 'undefined'
Expected Behavior
Installing an aliased package with no name should fail.
Steps To Reproduce
npm init
npm install a@npm:
I think the issue is in the
npa
function ofnpm-package-arg
, I will submit a PR to fix this, but wanted to file an issue first.Environment
The text was updated successfully, but these errors were encountered: