Install-RequiredModule
4.0.6
If it can't find the module in the PSModulePath, attempts to install it from PowerShellGet.
The RequiredModules list looks like this (uses nuget version range syntax):
@{
"PowerShellGet" = "2.0.4"
"Configuration" = "[1.3.1,2.0)"
"Pester" = "[4.4.2,4.7.0]"
}
https:/
If it can't find the module in the PSModulePath, attempts to install it from PowerShellGet.
The RequiredModules list looks like this (uses nuget version range syntax):
@{
"PowerShellGet" = "2.0.4"
"Configuration" = "[1.3.1,2.0)"
"Pester" = "[4.4.2,4.7.0]"
}
https://docs.microsoft.com/en-us/nuget/reference/package-versioning#version-ranges-and-wildcards
See the version list below for details.
Installation Options
Author(s)
Joel 'Jaykul' Bennett
Copyright
Copyright 2019, Joel Bennett
Package Details
Owners
Tags
Install Modules Development ModuleBuilder
Functions
GetModuleVersion FindModuleVersion ImportRequiredModulesFile InstallModuleVersion Install-RequiredModule
Dependencies
This script has no dependencies.
Release Notes
4.0.6 Fix a double -Verbose problem
4.0.5 Let the -Destination be non-empty (so we don't have to re-download every time)
4.0.4 Fix PowerShell 5 .Where bug
4.0.3 Fix module check when using -Destination to force all modules to be in destination
4.0.2 Fix Remove-Module error
4.0.1 Add logging outputs
4.0.0 Breaking change: require the -Destination to start empty (allow -CleanDestination to clear it)
Fix for adding the destination to PSModulePath multiple times
Started testing this so I can ship it to PowerShellGet
3.0.0 Breaking change: switch -SkipImport to -Import -- inverting the logic to NOT import by default
Add -Destination parameter to support installing in a local tool path
2.0.1 Squash mistaken "InstallError" message caused by Select-Object -First
Clean up output that was unexpected
2.0.0 Breaking change: use NuGetVersion to support wildcards like 3.*
Improve the error messages around aborted or failed installs
1.0.1 Fix "Version '3.4.0' of module 'Pester' is already installed"
1.0.0 This is the first public release - it probably doesn't work right
FileList
- Install-RequiredModule.nuspec
- Install-RequiredModule.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
5.1.0-upgrad... | 53 | 9/22/2022 |
5.1.0-upgrad... | 8 | 9/22/2022 |
5.1.0-upgrad... | 14 | 9/14/2022 |
5.1.0-upgrad... | 10 | 9/14/2022 |
5.0.5 | 18,412 | 9/3/2022 |
5.0.2 | 6,471 | 12/2/2021 |
5.0.1 | 14 | 12/2/2021 |
5.0.0 | 38 | 12/1/2021 |
4.0.6 (current version) | 50,595 | 6/4/2019 |
4.0.5 | 56 | 5/15/2019 |
4.0.4 | 81 | 4/27/2019 |
4.0.3 | 20 | 4/27/2019 |
4.0.2 | 31 | 4/27/2019 |
4.0.1 | 20 | 4/27/2019 |
4.0.0 | 27 | 4/24/2019 |
3.0.0 | 34 | 3/22/2019 |
2.0.1 | 21 | 3/21/2019 |
2.0.0 | 27 | 3/21/2019 |
1.0.1 | 23 | 3/21/2019 |
1.0.0 | 23 | 3/20/2019 |