HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

npm prefix — Print the local or global prefix to `stdout`. More information: <https://docs.npmjs.com/cli/npm-pref

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thenpm prefixcommandlocalprefixcliprintglobal

Problem

How to use the npm prefix command: Print the local or global prefix to stdout. More information: <https://docs.npmjs.com/cli/npm-prefix/>.

Solution

npm prefix — Print the local or global prefix to stdout. More information: <https://docs.npmjs.com/cli/npm-prefix/>.

Print the local prefix:
npm prefix


Print the global prefix:
npm prefix {{[-g|--global]}}

Code Snippets

Print the local prefix

npm prefix

Print the global prefix

npm prefix {{[-g|--global]}}

Context

tldr-pages: common/npm prefix

Revisions (0)

No revisions yet.