npm-restart(1) -- 运行包的 restart 脚本命令
基于 npm-restart(1) 官方文档翻译版本
SYNOPSIS 概要
npm restart [-- <args>]
DESCRIPTION 描述
运行包的 restart 脚本命令。
这将运行包的 stop、restart、和 start 脚本,并会按照下方的顺序运行 pre- 和 post- 脚本。
- prerestart
- prestop
- stop
- poststop
- restart
- prestart
- start
- poststart
- postrestart
NOTE 注意事项
请注意,restart 脚本只是运行 stop 和 start 脚本,而不是替换它们。
这是 npm v2 的行为。此行为将随着主版本号的增加而改变。