From 8304d2e01c1d5ca2a67c68455d544ce63d67b027 Mon Sep 17 00:00:00 2001 From: Dan Gough Date: Mon, 9 Dec 2024 18:41:27 +0000 Subject: [PATCH] Update README.md with PowerShellGet info --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca0e837..62c5119 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,13 @@ Install the module from the PowerShell Gallery: Install-Module PSAppDeployToolkit.Tools -Scope CurrentUser -AllowPreRelease ``` -Or import a downloaded copy of the module: +If this produces an error that the `-AllowPreRelease` parameter is not recognised, then first update PowerShellGet and then restart your PowerShell console: + +```powershell +Install-Module PowerShellGet -Force -Scope CurrentUser +``` + +Alternatively you can import a downloaded copy of the module - however with this approach, you will need to ensure its pre-requisite modules **PSAppDeployToolkit** and **PSScriptAnalyzer** are available: ```powershell Import-Module ""