kine / NVRAppDevOps

Navertica DevOps scripts for managing Microsoft Dynamics 365 Business Central Apps
31 stars 29 forks source link

installbcmodules failing with allowPreRelease #32

Closed TrippyZ closed 3 years ago

TrippyZ commented 3 years ago

I am getting the following error; A parameter cannot be found that matches parameter name 'AllowPrerelease'.

Log; 2021-03-16T18:25:14.9025917Z ##[section]Starting: installbcmodules 2021-03-16T18:25:14.9156917Z ============================================================================== 2021-03-16T18:25:14.9157180Z Task : Business Central - Install powershell modules 2021-03-16T18:25:14.9157403Z Description : Install NVRAppDevOps and bccontainerhelper PowerShell modules 2021-03-16T18:25:14.9157574Z Version : 3.6.0 2021-03-16T18:25:14.9157702Z Author : Kine 2021-03-16T18:25:14.9157974Z Help : Will check if PowerShell modules NVRAppDevOps and bccontainerhelper are installed in latest version. If not, they will be installed or updated as needed. 2021-03-16T18:25:14.9158421Z ============================================================================== 2021-03-16T18:25:15.9441488Z Checking and Installing needed modules 2021-03-16T18:25:19.7477811Z ##[error]A parameter cannot be found that matches parameter name 'AllowPrerelease'. 2021-03-16T18:25:19.7722428Z ##[section]Finishing: installbcmodules Yaml; trigger:

pool: default

steps:

kine commented 3 years ago
Install-Module -Name PowerShellGet -Repository PSGallery -Force

or

Update-Module -Name PowerShellGet -Repository PSGallery -Force
TrippyZ commented 3 years ago

Thank you, that did the trick