[BUG] cannot update to nightly build: Update-Module: Module 'PnP.PowerShell' was not installed by using Install-Module, so it cannot be updated. #3587
-
I'm currently on PnP Powershell 2.2.0 I get the following error, not sure how to go about upgrading - Any ideas ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try using Install-Module instead of update-module I'm guessing that the specific scope you are installing wasn't initially installed using Install-module (eg copy to module directory) and hence can't be updated. |
Beta Was this translation helpful? Give feedback.
-
Thanks, this works! I see that there are 2 commands for nightly build. That was my mistake. First I need to install it ofcource. Install nightly build documentation: Update nightly build documentation: |
Beta Was this translation helpful? Give feedback.
Try using Install-Module instead of update-module
I'm guessing that the specific scope you are installing wasn't initially installed using Install-module (eg copy to module directory) and hence can't be updated.