snippetbashTip
npm prefix — Print the local or global prefix to `stdout`. More information: <https://docs.npmjs.com/cli/npm-pref
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 prefixPrint the global prefix:
npm prefix {{[-g|--global]}}Code Snippets
Print the local prefix
npm prefixPrint the global prefix
npm prefix {{[-g|--global]}}Context
tldr-pages: common/npm prefix
Revisions (0)
No revisions yet.