Install icon indicating copy to clipboard operation
Install copied to clipboard

installation error

Open balboliu opened this issue 1 year ago • 0 comments

Description

after execute ' Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression', PS output:

Invoke-Expression : 无法调用方法。此语言模式仅支持核心类型的方法调用。 所在位置 行:1 字符: 47

  • Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
  •                                           ~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Invoke-Expression],RuntimeException
    • FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeEx pressionCommand

Installation Logs

    详细信息: GET https://get.scoop.sh/ with 0-byte payload
详细信息: received 25628-byte response of content type text/plain; charset=utf-8
详细信息: -------- PSBoundParameters --------
Invoke-Expression : 无法调用方法。此语言模式仅支持核心类型的方法调用。
所在位置 行:1 字符: 47
+ Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
+                                               ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Invoke-Expression],RuntimeException
    + FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeEx
   pressionCommand

PowerShell Context

Name                           Value
----                           -----
PSVersion                      5.1.19041.4894
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.4894
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Information

版本	Windows 10 企业版
版本号	22H2
安装日期	‎2023/‎11/‎11
操作系统内部版本	19045.4894
体验	Windows Feature Experience Pack 1000.19060.1000.0

Possible Solution

balboliu avatar Sep 23 '24 09:09 balboliu