NVM on Windows 10

It very simple to run nodejs on Windows 10.

  • Get NVM-Windows from https://github.com/coreybutler/nvm-windows
  • Open powershell and install node
    • nvm install 10
    • Close Powershell and open it agin.
    • Run this to activate node version.
    nvm use 10
    • Close Powershell.

Run Node App as Service on Windows

  • Download latest version from https://nssm.cc/download
  • Extract the zip file
  • To install a new service, open the Powershell
    • Run: cd /path/to/extracted/nssm.exe
    • Run: nssm.exe install <servicename>. This will open NSSM service installer dialog.
    • Configure the service in the dialog.