Installation of Qwen Code
Qwen Code supports installation via npm or source code for all major operating systems.
pre-conditions
- Node.js version 20 or higher
- Stable network connection
- Alibaba Cloud account (for API keys)
Install via npm
- Install 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
- Agency-wide deployment:
npm install -g .
caveat
If the installation fails, it is recommended to check the Node.js version and network connection, or refer to the troubleshooting guide in the official documentation.
This answer comes from the articleQwen Code: Gemini CLI-Based Command Line Tools for Code Generation and ManagementThe
































