npm config get prefix

Category: Node.js & npm/yarn

npm config get prefix

Print the directory where global npm packages are installed

Shows the folder where globally installed npm packages land — useful for diagnosing PATH issues when a global command isn't found.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.