[BUG - Update-Module -Name "PnP.Powershell" returning an error - PnP.Powershell was not installed by using Install-Module so it cannot be updated #1759
Unanswered
hsamdani12
asked this question in
Q&A
Replies: 2 comments
-
So how do we update? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can always use install-module -force
man. 11. sep. 2023 16.27 skrev Kevin Welsh ***@***.***>:
… So how do we update?
—
Reply to this email directly, view it on GitHub
<#1759 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMTDTXWJGILKUFVVT7O3YDXZ4NVHANCNFSM6AAAAAA4TNUYZE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently on version 1.8.0 for PnP.Powershell.
When I run the following command -
Get-Module PnP -ListAvailable | Select-Object Name,Version | Sort-Object Version -Descending
This is what I get -
Name Version
PnP.PowerShell 1.8.0
PnpDevice 1.0.0.0
I'm trying to update to latest version using the following command -
Update-Module -Name "PnP.Powershell" -RequiredVersion 1.10.0 -Force
Expected behavior
I'm sure I used Install-Module to install the PnP. Powershell v 1.8.0. I should be able to update it to latest version of PnP.Powershell
Actual behavior
I get the following error when doing an upgrade -
Update-Module : Module 'PnP.Powershell' was not installed by using Install-Module, so it cannot be updated.
At line:1 char:1
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
What is the version of the Cmdlet module you are running?
PnP.PowerShell 1.8.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions