npm root

Display path to node_modules directory. More information: https://docs.npmjs.com/cli/commands/npm-root.

npm root

npm root --global