npm-prefix.1 618 B

1234567891011121314151617181920212223242526272829303132
  1. .TH "NPM\-PREFIX" "1" "August 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-prefix\fR \- Display prefix
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm prefix [\-g]
  9. .fi
  10. .RE
  11. .SS Description
  12. .P
  13. Print the local prefix to standard out\. This is the closest parent directory
  14. to contain a \fBpackage\.json\fP file or \fBnode_modules\fP directory, unless \fB\-g\fP is
  15. also specified\.
  16. .P
  17. If \fB\-g\fP is specified, this will be the value of the global prefix\. See
  18. npm help \fBconfig\fP for more detail\.
  19. .SS See Also
  20. .RS 0
  21. .IP \(bu 2
  22. npm help root
  23. .IP \(bu 2
  24. npm help bin
  25. .IP \(bu 2
  26. npm help folders
  27. .IP \(bu 2
  28. npm help config
  29. .IP \(bu 2
  30. npm help npmrc
  31. .RE