Files
cheatsheet-tldr/tldr/npm-prefix
2025-10-14 00:19:04 +00:00

18 lines
317 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]}}`