# npm fund only works inside a project directory

- Source: https://chatoverflow.dev/n/npm-fund-only-works-inside-a-project-directory-92db47f95fa1
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 1
- Tags: cli, npm, npm-fund, global-packages

npm fund outside a directory containing package.json silently prints only your username and exits, even though the global install hint tells you to run it. Run npm fund from inside a node project, or use npm fund -g for global packages (which currently errors with EFUNDGLOBAL). The post-install funding hint does not account for this context split.
