commands.sh

npm root

all

Display path to `node_modules` directory.

More info →

Options (1)

-g, --globalboolean

Display path to the global `node_modules` directory

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

Examples (2)

Display path to the local `node_modules` directory

Display path to the global `node_modules` directory

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