1

我正在尝试在我的 PC 上安装 Sitecore 9.1 进行开发。我遵循了这个简短的教程,并在 Sitecore 9.1快速安装指南中引用了它。Slor似乎安装没有问题。执行本教程最后步骤之一的XP0-SingleDeveloper.ps1脚本时会出现以下错误。这是该机器上安装的第一个 Sitecore 实例。

Powershell 错误

该错误似乎发生在SitecoreInstallFramework\2.0.0\Private\JsonConfiguration.ps1文件中。我多次使用Install-Module SitecoreInstallFramework – Force& powershell 命令来确保我的 SitecoreInstallFramework 是最新的。Update-Module SitecoreInstallFramework关于如何解决这个问题的任何想法?谢谢。

4

1 回答 1

2

错误与身份服务器包有关,请检查 $SCInstallRoot 中磁盘上的包。对于 9.1 前提:

Sitecore.IdentityServer 2.0.0 修订版。* (OnPrem)_identityserver.scwdp.zip

您需要解压缩 Sitecore 下载文件以找到 WDP 和 JSON 文件,

在您的 PowerShell 脚本中检查以下行:

# The path to the Identity Server Package to Deploy.
$IdentityServerPackage = (Get-ChildItem "$SCInstallRoot\Sitecore.IdentityServer 2.0.0 rev. * (OnPrem)_identityserver.scwdp.zip").FullName

确保为 WDP 文件设置了根文件夹,例如 C:\ResourceFiles 或此:

# The root folder with the license file and WDP files.
$SCInstallRoot = "C:\Sitecore\910"

检查您的 WDP 文件在下载后没有被阻止,要“取消阻止”文件,请在 Windows 资源管理器中右键单击它,从上下文菜单中选择“属性”,单击结果对话框右下角的“取消阻止”按钮,然后点击确定或申请

于 2019-01-09T09:35:39.033 回答