安装 Qwen Code 步骤
Qwen Code 支持通过 npm 或源码安装,适用于主流操作系统。
pre-conditions
- Node.js 版本 20 或更高
- Stable network connection
- Alibaba Cloud 账户(用于 API 密钥)
Install via npm
- 安装 Node.js:
curl -qL https://www.npmjs.com/install.sh | sh
- Global Installation:
npm install -g @qwen-code/qwen-code
- Verify the installation:
qwen --version
Installation via source code
- Cloning Warehouse:
git clone https://github.com/QwenLM/qwen-code.git
- Go to the catalog:
cd qwen-code
- Install the dependencies:
npm install
- 全局部署:
npm install -g .
caveat
如遇安装失败,建议检查 Node.js 版本和网络连接,或参考官方文档中的 troubleshooting 指南。
This answer comes from the articleQwen Code: Gemini CLI-Based Command Line Tools for Code Generation and ManagementThe