Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation error #93

Open
balboliu opened this issue Sep 23, 2024 · 0 comments
Open

installation error #93

balboliu opened this issue Sep 23, 2024 · 0 comments

Comments

@balboliu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant