node-msi
Fetches and starts the latest Node installer for Windows.
Installation
npm install node-msi
Quickstart
const fetch start = // fetch latest Node 64-bit installer// to Downloads and start it
API
msi.fetch({ version, bits, dir })
> fetches the specified Node installer from https://nodejs.org/dist/
- version
{String}
: the installer version to be fetched, e.g.6.0.0
; default: the latest Node version - bits
{Number}
:32
or64
; default:64
- dir
{String}
: the directory where the installer will be downloaded to; default:C:/Users/<User>/Downloads
- returns
{Promise}
: resolves with thepath
of the downloaded installer; rejects if anError
occurs
msi.start(path)
> starts the Node installer from the specified path
- path
{String}
: thepath
of the installer - returns
{Promise}
: resolves once the installer starts; rejects if anError
occurs
License
WTFPL – Do What the F*ck You Want to Public License.
Made with ❤️ by @MarkTiedemann.