Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-restart (1)

Name

npm-restart - Restart a package

Synopsis

npm restart [-- <args>]

Description

NPM-RESTART(1)                                                  NPM-RESTART(1)



NAME
       npm-restart - Restart a package

SYNOPSIS
         npm restart [-- <args>]

DESCRIPTION
       This restarts a package.

       This runs a package's "stop", "restart", and "start" scripts, and asso-
       ciated pre- and post- scripts, in the order given below:

       1. prerestart

       2. prestop

       3. stop

       4. poststop

       5. restart

       6. prestart

       7. start

       8. poststart

       9. postrestart


NOTE
       Note that the "restart" script is run in addition  to  the  "stop"  and
       "start" scripts, not instead of them.

       This  is  the  behavior  as  of  npm major version 2.  A change in this
       behavior will be accompanied by an increase in major version number


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 run-script

       o npm help 7 scripts

       o npm help test

       o npm help start

       o npm help stop

       o npm apihelp restart





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-RESTART(1)