如何解决使用v0.17.1版本starport运行scaffold命令时出现的"this version of Cosmos SDK is no longer supported"错误?
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.
Solution 1: Upgrade Starport (Recommended)
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):
- Open your project's
go.modfile in a text editor. - Locate the line starting with
github.com/cosmos/cosmos-sdkand update it to:github.com/cosmos/cosmos-sdk v0.44.6 - Sync your dependencies with:
go mod tidy - Try running
starport scaffoldagain.
⚠️ 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

