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.