Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-prefix (1)

Name

npm-prefix - Display prefix

Synopsis

npm prefix [-g]

Description

NPM-PREFIX(1)                                                    NPM-PREFIX(1)



NAME
       npm-prefix - 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 unless -g is also specified.

       If -g is specified, this will be the value of the  global  prefix.  See
       npm help 7 npm-config for more detail.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE      |
       +---------------+-------------------------+
       |Availability   | runtime/nodejs/nodejs-8 |
       +---------------+-------------------------+
       |Stability      | Pass-thru volatile      |
       +---------------+-------------------------+
SEE ALSO
       o npm help root

       o npm help bin

       o npm help 5 folders

       o npm help config

       o npm help 7 config

       o npm help 5 npmrc





NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source    was   downloaded   from    https://github.com/nodejs/node/ar-
       chive/v8.15.1.zip

       Further information about this software can be found on the open source
       community website at https://github.com/nodejs/node.



                                  August 2018                    NPM-PREFIX(1)