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

由于出现以下错误,无法运行此命令: %1 不是有效的 Win32 应用程序。。 #77

Open
zlican77 opened this issue Dec 25, 2024 · 4 comments

Comments

@zlican77
Copy link

image
PS C:\WINDOWS\system32> irm https://raw.githubusercontent.com/yuaotian/go-cursor-help/master/scripts/install.ps1 | iex
e[36m[]e[0m 开始安装...
e[36m[
]e[0m 正在检查运行中的Cursor进程...
e[36m[]e[0m 正在备份storage.json...
e[32m[✓]e[0m 备份已创建于: C:\Users\86156\AppData\Roaming\Cursor\User\globalStorage\storage.json.backup
e[36m[
]e[0m 检测到架构: amd64
Invoke-RestMethod : {"message":"API rate limit exceeded for 212.107.29.68. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-re
st-api#rate-limiting"}
所在位置 行:133 字符: 16

  • ... $release = Invoke-RestMethod -Uri "https://api.github.com/repos/$rep ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod],WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
      e[36m[*]e[0m 最新版本:
      不能对 Null 值表达式调用方法。
      所在位置 行:248 字符: 1
  • $versionWithoutV = $version.TrimStart('v') # 移除版本号前面的 'v' 字符
  •   + CategoryInfo          : InvalidOperation: (:) [],RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

e[36m[]e[0m 正在创建安装目录...
e[36m[
]e[0m 正在从以下地址下载最新版本: https://github.com/yuaotian/go-cursor-help/releases/download//cursor_id_modifier__windows_amd64.exe
e[36m[]e[0m 正在安装程序...
e[36m[
]e[0m 正在清理...
e[32m[✓]e[0m 安装成功完成!
e[32m[✓]e[0m 现在可以直接使用 'cursor-id-modifier' 了

e[33m[!]e[0m Failed to start cursor-id-modifier: 由于出现以下错误,无法运行此命令: %1 不是有效的 Win32 应用程序。。

PS C:\WINDOWS\system32>

@zlican77
Copy link
Author

powershell和powershell ISE都不行,win10

@yuaotian
Copy link
Owner

你手动下载amd版本试试看~

@daytime001
Copy link

遇到了同样的问题,楼主解决了吗

@daytime001
Copy link

奇怪,我关掉梯子再试就好了

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

3 participants