npm-prefix
prints the local or global prefix path
TLDR
Show local prefix
$ npm prefix
Show global prefix$ npm prefix -g
SYNOPSIS
npm prefix [options]
DESCRIPTION
npm prefix prints the local or global prefix path. Shows where packages are installed.
The command displays installation directory. Useful for scripting.
PARAMETERS
-g
Global prefix.--help
Display help information.
CAVEATS
Local shows closest package.json dir. Global shows npm global path.
HISTORY
npm prefix helps locate package installation directories for scripts and debugging.
