我正在使用MacOS 10.15,并且有一个PSRabbitMq PowerShell模块的克隆版本。我尝试将其发布到我创建的本地存储库中:
Register-PSRepository -Name TestPSRepo -SourceLocation '/tmp/powershell_test_repository' -InstallationPolicy Trusted
Publish-Module -Path '<path_to_module>/PSRabbitMq' -Repository TestPSRepo -NuGetApiKey 'test' -Verbose
遇到此错误:
Publish-PSArtifactUtility : Failed to generate the compressed file for module '/usr/local/bin/dotnet failed to pack: error
'.
At /Users/my_user/.local/share/powershell/Modules/PowerShellGet/2.2.1/PSModule.psm1:10944 char:17
+ ... Publish-PSArtifactUtility @PublishPSArtifactUtility_Param ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : FailedToCreateCompressedModule,Publish-PSArtifactUtility
我已经安装了dotnet-runtime-3.0.0-osx
,有人知道这个错误是什么意思吗?
谢谢!