Files
cheatsheet-tldr/tldr/npm-prefix
2025-12-20 00:20:53 +00:00

18 lines
318 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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]}}`