npm-root(1)

npm-root1

Usage

<!-- AUTOGENERATED USAGE DESCRIPTIONS -->

Overview

Print the effective node_modules folder to standard out.

Useful for using npm in shell scripts that do things with the
node_modules folder. For example:

#!/bin/bash
global_node_modules="$(npm root --global)"
echo "Global packages installed in: ${global_node_modules}"

Configuration

<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->

Releases

5 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 10
  3. 11
  4. 12
  5. 13

From npm 9.2.0~ds1-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.