mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 04:23:20 +00:00

PR-URL: https://github.com/nodejs/node/pull/32368 Refs: https://github.com/nodejs/node/issues/32296 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
662 B
662 B
section | title | description |
---|---|---|
cli-commands | npm-prefix | Display prefix |
npm-prefix(1)
Display prefix
Synopsis
npm prefix [-g]
Description
Print the local prefix to standard out. This is the closest parent directory
to contain a package.json
file or node_modules
directory, unless -g
is
also specified.
If -g
is specified, this will be the value of the global prefix. See
npm config
for more detail.