• Installs a package

    Parameters

    Returns Promise<void>

    Throws

    Error if the version is invalid

    Throws

    Error if the exit code of npm install is not 0

    Example

    await npmInstall({
    packageName: 'typescript',
    version: 'latest',
    deepJsonFilePath,
    packageJsonFilePath,
    })

Generated using TypeDoc