npm Config, Auth & Cache/Show global bin path

Print the directory where global binaries are linked.

Section: Environment and paths

Show global bin path

bash
bash
npm bin -g
Explanation

Print the directory where global binaries are linked.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Environment and paths
Show global prefix
Print the global installation prefix.
OpenIn sheetbashsame section
Show global node_modules root
Print the global node_modules directory.
OpenIn sheetbashsame section
Run npm environment checks
Check common npm environment problems.
OpenIn sheetbashsame section
Ping registry
Verify connectivity to the configured registry.
OpenIn sheetbashsame section
List config values
Display effective npm configuration.
OpenIn sheetbash1 tag match
Verify cache
Validate the integrity of the npm cache.
OpenIn sheetbash1 tag match