New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-version-install

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-version-install

Install NodeJs by version string asynchronously or synchronously

latest
Source
npmnpm
Version
1.5.5
Version published
Weekly downloads
134
-22.54%
Maintainers
1
Weekly downloads
 
Created
Source

node-version-install

Install NodeJs by version string asynchronously or synchronously.

Example 1: Asynchronous Install

import install from "node-version-install";

const result = await install("12", "/path/for/install");
console.log(result); // { version: "12.3.4", execPath, installPath }

Example 2: Synchronous Install


import install from "node-version-install";

const call = require("node-version-install");

const result = install("14,stable", "/path/for/install");
console.log(result); // [{ version: "14.4.5", execPath, installPath }, { version: "22.2.1", execPath, installPath }]

Documentation

API Docs

Keywords

node

FAQs

Package last updated on 23 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts