LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-restart

runs stop, restart, and start scripts

TLDR

Restart application
$ npm restart
copy

SYNOPSIS

npm restart [args...]

DESCRIPTION

npm restart runs the lifecycle hooks prerestart, restart, and postrestart in order. If no restart script is defined in package.json, it falls back to running stop followed by start (so the package's own start and stop scripts execute). This is the conventional way to bounce a long-running Node process described by package.json scripts without rewriting the command in your shell.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Unlike a process supervisor (pm2, systemd), npm restart does not background the new process or persist it across shell exits — it simply runs the start script in the foreground. For production process management use a real supervisor.

SEE ALSO

npm(1), npm-start(1), npm-stop(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid