Skip to content

Commit 725e9f1

Browse files
espoelstradaxian-dbw
authored andcommitted
Add instructions for updating PowerShellGet for Windows PowerShell users (#1222)
1 parent 6f0ccf4 commit 725e9f1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,17 @@ There are multiple ways to install PSReadLine.
4040

4141
### Install from PowerShellGallery (preferred)
4242

43-
You will need [PowerShellGet](https://docs.microsoft.com/en-us/powershell/gallery/installing-psget).
44-
After installing PowerShellGet, you can simply run `Install-Module PSReadLine -AllowPrerelease -Force` to get the latest prerelease version.
43+
You will need the 1.6.0 or a higher version of [PowerShellGet](https://docs.microsoft.com/powershell/scripting/gallery/installing-psget) to install the latest prerelease version of PSReadLine.
44+
45+
Windows PowerShell 5.1 ships an older version of PowerShellGet which doesn't support installing prerelease modules,
46+
so Windows PowerShell users need to install the latest PowerShellGet (if not yet) by running the following commands from an elevated Windows PowerShell session:
47+
48+
```powershell
49+
Install-Module -Name PowerShellGet -Force
50+
Exit
51+
```
52+
53+
After installing PowerShellGet, you can simply run `Install-Module PSReadLine -AllowPrerelease -Force` to get the latest prerelease version of PSReadLine.
4554
If you only want to get the latest stable version, run `Install-Module PSReadLine`.
4655

4756
>[!NOTE] Prerelease versions will have newer features and bug fixes, but may also introduce new issues.

0 commit comments

Comments
 (0)