# npm root > 显示 `node_modules` 目录的路径。 > 更多信息:。 - 显示本地 `node_modules` 目录的路径: `npm root` - 显示全局 `node_modules` 目录的路径: `npm root --global`