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] Global install shows funding message but can't get info #3112

Open
bjornstar opened this issue Apr 21, 2021 · 3 comments
Open

[BUG] Global install shows funding message but can't get info #3112

bjornstar opened this issue Apr 21, 2021 · 3 comments
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 7.x work is associated with a specific npm 7 release

Comments

@bjornstar
Copy link

Current Behavior:

bjornstar@penguin:~$ npm i -g npm

changed 14 packages, and audited 253 packages in 14s

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
bjornstar@penguin:~$ npm fund
bjornstar

bjornstar@penguin:~$ npm -g fund
npm ERR! code EFUNDGLOBAL
npm ERR! `npm fund` does not support global packages

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bjornstar/.npm/_logs/2021-04-21T01_32_23_134Z-debug.log
bjornstar@penguin:~$ npm fund npm
npm ERR! code ENOFUND
npm ERR! No valid funding method available for: npm

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bjornstar/.npm/_logs/2021-04-21T01_37_39_995Z-debug.log

Expected Behavior:

Either show me the funding info or don't tell me there are packages looking for funding.

It's poor user experience for the application to suggest running commands to users that do not work.

This is similar to #2862

Steps To Reproduce:

npm i -g npm

Environment:

  • Node: v14.16.0
  • npm: 7.10.0
@bjornstar bjornstar 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 21, 2021
@ljharb
Copy link
Contributor

ljharb commented Apr 21, 2021

npm fund -g should definitely work imo.

@darcyclarke darcyclarke added Enhancement new feature or improvement Bug thing that needs fixing and removed Needs Triage needs review for next steps Bug thing that needs fixing Enhancement new feature or improvement labels Jun 4, 2021
@darcyclarke
Copy link
Contributor

  • Action: Remove reference to npm fund in output post-install w/ -g

If you'd like npm fund -g to work, that is a separate feature request.

@ljharb
Copy link
Contributor

ljharb commented Jun 4, 2021

@darcyclarke i'm not sure why it should be - imo every command should work both with or without -g (when reasonable), or else it's a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

4 participants