You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何解决使用v0.17.1版本starport运行scaffold命令时出现的"this version of Cosmos SDK is no longer supported"错误?

Fix for "this version of Cosmos SDK is no longer supported" in Starport v0.17.1

Why this happens

Your Starport v0.17.1 (compiled July 2021) is tied to an older Cosmos SDK version that's no longer maintained by the Cosmos team. When you run starport scaffold, the tool checks for actively supported SDK releases and throws this error because its target version has reached end-of-life.

This is the best long-term fix—newer Starport versions support maintained Cosmos SDK releases, plus they include bug fixes, security patches, and useful new features. For your darwin/amd64 system:

  • If you installed Starport via Homebrew:
    brew upgrade starport
    
  • If you used the official installation script:
    curl https://get.starport.network | bash
    
  • Verify the upgrade worked with:
    starport version
    

Once upgraded, running starport scaffold should work without the error, as the new Starport will default to a supported Cosmos SDK version.

Solution 2: Lock to a compatible Cosmos SDK version (If you must keep Starport v0.17.1)

If you can't upgrade Starport right now, you can force your project to use the Cosmos SDK version Starport v0.17.1 was built for (v0.44.x, with v0.44.6 being a stable release from that branch):

  1. Open your project's go.mod file in a text editor.
  2. Locate the line starting with github.com/cosmos/cosmos-sdk and update it to:
    github.com/cosmos/cosmos-sdk v0.44.6
    
  3. Sync your dependencies with:
    go mod tidy
    
  4. Try running starport scaffold again.

⚠️ Note: This is a temporary workaround. The v0.44.x Cosmos SDK branch no longer receives security updates, so use this only if absolutely necessary.

Solution 3: Specify SDK version when scaffolding (for new projects)

If you're starting a fresh project with Starport v0.17.1, explicitly tell the tool to use a compatible SDK version:

starport scaffold --sdk-version 0.44.6

This will generate project files that use the supported SDK version, avoiding the error entirely.

内容的提问来源于stack exchange,提问作者Emeka Onwuliri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 23:09:09