Skip to main content

install

Function install 

Source
pub async fn install(
    npm: &mut Npm,
    root: &Path,
    name: &str,
    range: Option<&str>,
) -> Result<Installed, NpmError>
Expand description

Installs name (at range, else the latest version) into the npm root root, and records it in the root’s package.json. The caller holds the root’s lock_root.