commands.sh

npm prefix

all

Print the local or global prefix to `stdout`.

More info →

Options (1)

-g, --globalboolean

Print the global prefix

Example: npm prefix {{[-g|--global]}}

Examples (2)

Print the local prefix

Print the global prefix

npm prefix [-g|--global]
made by @shridhargupta | data from tldr-pages