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

[BUG] npm install "" installs package "undefined" #3029

Closed
mjsir911 opened this issue Apr 4, 2021 · 0 comments · Fixed by #4679
Closed

[BUG] npm install "" installs package "undefined" #3029

mjsir911 opened this issue Apr 4, 2021 · 0 comments · Fixed by #4679
Labels
Bug thing that needs fixing cmd:install related to `npm install` Priority 2 secondary priority issue Release 7.x work is associated with a specific npm 7 release Release 8.x work is associated with a specific npm 8 release

Comments

@mjsir911
Copy link
Contributor

mjsir911 commented Apr 4, 2021

Current Behavior:

$ npm install --global ""
npm verb cli [
npm verb cli   '/usr/local/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'install',
npm verb cli   '--global',
npm verb cli   '',
npm verb cli ]
npm info using npm@7.0.8
npm info using node@v15.1.0
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
npm timing config:load:builtin Completed in 0ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 0ms
npm timing config:load:file:/.npmrc Completed in 0ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:/root/.npmrc Completed in 0ms
npm timing config:load:user Completed in 0ms
npm timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:cafile Completed in 1ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:setUserAgent Completed in 0ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 6ms
npm verb npm-session b77bf6dc929f4ac7
npm timing npm:load Completed in 18ms
npm http fetch GET 200 https://registry.npmjs.org/npm 999ms
npm timing arborist:ctor Completed in 0ms
npm timing idealTree:init Completed in 2ms
npm http fetch GET 200 https://registry.npmjs.org/undefined 33ms
npm timing idealTree:userRequests Completed in 35ms
npm http fetch GET 304 https://registry.npmjs.org/undefined 42ms (from cache)
npm timing idealTree:#root Completed in 47ms
npm timing idealTree:node_modules/undefined Completed in 0ms
npm timing idealTree:buildDeps Completed in 48ms
npm timing idealTree:fixDepFlags Completed in 1ms
npm timing idealTree Completed in 88ms
npm timing reify:loadTrees Completed in 91ms
npm timing reify:diffTrees Completed in 0ms
npm timing reify:retireShallow Completed in 1ms
npm timing reify:createSparse Completed in 1ms
npm timing reify:loadBundles Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/undefined/-/undefined-0.1.0.tgz 67ms
npm WARN deprecated undefined@0.1.0: this package has been deprecated
npm timing reifyNode:node_modules/undefined Completed in 75ms
npm timing reify:unpack Completed in 76ms
npm timing reify:unretire Completed in 0ms
npm timing build:queue Completed in 0ms
npm timing build:deps Completed in 0ms
npm timing build Completed in 1ms
npm timing reify:build Completed in 2ms
npm timing reify:trash Completed in 0ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 83ms
npm timing auditReport:getReport Completed in 85ms
npm timing auditReport:init Completed in 0ms
npm timing reify:audit Completed in 85ms
npm timing reify Completed in 181ms

added 1 package, and audited 1 package in 1s

found 0 vulnerabilities
npm timing command:install Completed in 186ms
npm notice 
npm notice New minor version of npm available! 7.0.8 -> 7.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.8.0
npm notice Run npm install -g npm@7.8.0 to update!
npm notice 
npm verb exit 0
npm timing npm Completed in 1428ms
npm info ok 

Expected Behavior:

Probably an error

Steps To Reproduce:

npm install --global ""

Environment:

Docker's node:latest at time of writing

$ node --version
v15.13.0
$ npm --version
7.7.6
@mjsir911 mjsir911 added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Apr 4, 2021
@nlf nlf added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels Apr 6, 2021
mjsir911 added a commit to mjsir911/npm-package-arg that referenced this issue Apr 18, 2021
Fixes npm/cli#3029

Signed-off-by: Marco Sirabella <marco@sirabella.org>
@ruyadorno ruyadorno added Release 8.x work is associated with a specific npm 8 release cmd:install related to `npm install` labels Apr 4, 2022
ruyadorno added a commit to ruyadorno/cli that referenced this issue Apr 4, 2022
Throws an usage error if finding an invalid argument in global install.

Fixes: npm#3029
ruyadorno added a commit to ruyadorno/cli that referenced this issue Apr 19, 2022
Throws an usage error if finding an invalid argument in global install.

Fixes: npm#3029
ruyadorno added a commit to ruyadorno/cli that referenced this issue Apr 19, 2022
Throws an usage error if finding an invalid argument in global install.

Fixes: npm#3029
lukekarrys pushed a commit that referenced this issue Apr 19, 2022
Throws an usage error if finding an invalid argument in global install.

Fixes: #3029
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing cmd:install related to `npm install` Priority 2 secondary priority issue Release 7.x work is associated with a specific npm 7 release Release 8.x work is associated with a specific npm 8 release
Projects
None yet
3 participants