{"id":470,"date":"2026-04-02T20:54:01","date_gmt":"2026-04-03T03:54:01","guid":{"rendered":"https:\/\/junsun.net\/wordpress\/?p=470"},"modified":"2026-04-07T19:22:19","modified_gmt":"2026-04-08T02:22:19","slug":"install-claude-code-on-risc-v-linux-hosts","status":"publish","type":"post","link":"https:\/\/junsun.net\/wordpress\/2026\/04\/install-claude-code-on-risc-v-linux-hosts\/","title":{"rendered":"Install Claude Code on RISC-V Linux Hosts"},"content":{"rendered":"\n<p>Claude Code is damn powerful!  But if you want to install it on RISC-V Linux hosts via the official installer script, you will be greeted with some cold rejection!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jsun@lpi4a:~$ curl -fsSL https:\/\/claude.ai\/install.sh | bash\nUnsupported architecture: riscv64\n<\/code><\/pre>\n\n\n\n<p>Below is the workaround method, tested on LicheePi 4A board:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># install nodejs (>=v18) and npm\nsudo apt install nodejs npm\n\n# (optional) install npm packages to user-local; no sudo needed\nmkdir -p ~\/.npm-global\nnpm config set prefix '~\/.npm-global'\necho 'export PATH=~\/.npm-global\/bin:$PATH' >> ~\/.bashrc\nsource ~\/.bashrc\n\n# install claude-code as npm package\nnpm install -g @anthropic-ai\/claude-code\n\n# run!\ncd ~\/my-code\nclaude\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Claude Code is damn powerful! But if you want to install it on RISC-V Linux hosts via the official installer script, you will be greeted with some cold rejection! Below is the workaround method, tested on LicheePi 4A board:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[116,81,117,118],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":4,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/470\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}