Skip to content
npm Docs
npmjs.comStatusSupport
About npm
Getting started
Packages and modules
Integrations
Organizations
Policies
Threats and Mitigations
npm CLI
CLI Commands
npmnpm accessnpm addusernpm auditnpm binnpm bugsnpm buildnpm bundlenpm cachenpm cinpm completionnpm confignpm dedupenpm deprecatenpm dist-tagnpm docsnpm doctornpm editnpm explorenpm fundnpm helpnpm help-searchnpm hooknpm initnpm installnpm install-ci-testnpm install-testnpm linknpm logoutnpm lsnpm orgnpm outdatednpm ownernpm packnpm pingnpm prefixnpm profilenpm prunenpm publishnpm rebuildnpm reponpm restartnpm rootnpm run-scriptnpm searchnpm shrinkwrapnpm starnpm starsnpm startnpm stopnpm teamnpm testnpm tokennpm uninstallnpm unpublishnpm updatenpm versionnpm viewnpm whoami
Configuring npm
Using npm

npm-root

Display npm root
Version 6.14.17 (Legacy Release)
  • Version 6.14.17 (Legacy Release)
  • Version 7.24.2 (Legacy Release)
  • Version 8.19.3 (Latest Release)
  • Version 9.1.0 (Current Release)
Table of contents
  • Synopsis
  • Description
  • See Also
Table of contents
  • Synopsis
  • Description
  • See Also

Synopsis

npm root [-g]

Description

Print the effective node_modules folder to standard out.

See Also

  • npm prefix
  • npm bin
  • npm folders
  • npm config
  • npmrc
Edit this page on GitHub