mirror of https://github.com/nodejs/node.git
19 lines
908 B
HTML
19 lines
908 B
HTML
<h1><a href="../cli/npm-prefix.html">npm-prefix</a></h1> <p>Display prefix</p>
|
|
<h2 id="synopsis">SYNOPSIS</h2>
|
|
<pre><code>npm prefix [-g]
|
|
</code></pre><h2 id="description">DESCRIPTION</h2>
|
|
<p>Print the local prefix to standard out. This is the closest parent directory
|
|
to contain a package.json file unless <code>-g</code> is also specified.</p>
|
|
<p>If <code>-g</code> is specified, this will be the value of the global prefix. See
|
|
<code><a href="../misc/npm-config.html">npm-config(7)</a></code> for more detail.</p>
|
|
<h2 id="see-also">SEE ALSO</h2>
|
|
<ul>
|
|
<li><a href="../cli/npm-root.html">npm-root(1)</a></li>
|
|
<li><a href="../cli/npm-bin.html">npm-bin(1)</a></li>
|
|
<li><a href="../files/npm-folders.html">npm-folders(5)</a></li>
|
|
<li><a href="../cli/npm-config.html">npm-config(1)</a></li>
|
|
<li><a href="../misc/npm-config.html">npm-config(7)</a></li>
|
|
<li><a href="../files/npmrc.html">npmrc(5)</a></li>
|
|
</ul>
|
|
|