LogoCursor
Getting Started

安装开发必备工具

开始编程时,你需要在电脑上安装一些必备的开发工具。Cline 可以帮助你安全、引导式地安装所有所需工具。

🧰 必备工具清单

以下是开发所需的核心工具:

  • Node.js & npm: JavaScript 和 Web 开发必备
  • Git: 用于代码版本管理和协作
  • 包管理器: 便于安装其他开发工具
    • macOS:Homebrew
    • Windows:Chocolatey
    • Linux:apt/yum

小贴士

这些工具是开发者工具箱的基础,正确安装它们将为你的编程之路打下坚实基础!

🚀 让 Cline 一键安装全部工具

根据你的操作系统,复制下方对应内容并粘贴到 Cline 聊天窗口:

macOS 用户

Hello Cline! I need help setting up my Mac for software development. Could you please help me install the essential development tools like Homebrew, Node.js, Git, and any other core utilities that are commonly needed for coding? I'd like you to guide me through the process step-by-step.

Windows 用户

Hello Cline! I need help setting up my Windows PC for software development. Could you please help me install the essential development tools like Node.js, Git, and any other core utilities that are commonly needed for coding? I'd like you to guide me through the process step-by-step.

Linux 用户

Hello Cline! I need help setting up my Linux system for software development. Could you please help me install the essential development tools like Node.js, Git, and any other core utilities that are commonly needed for coding? I'd like you to guide me through the process step-by-step.

专业建议

Cline 会在每一步执行前展示命令,你始终掌控整个过程!

🔍 安装流程说明

Cline 会引导你完成以下步骤:

  1. 安装适合你系统的包管理器
  2. 使用包管理器安装 Node.js 和 Git
  3. 在执行前展示每条命令(你逐步确认!)
  4. 验证每个工具是否安装成功

注意

某些安装步骤可能需要你输入电脑密码,这是正常现象!

💡 为什么这些工具很重要

  • Node.js & npm:
    • 用 React、Next.js 等框架构建网站
    • 运行 JavaScript 代码
    • 安装 JavaScript 包
  • Git:
    • 保存代码的不同版本
    • 与其他开发者协作
    • 备份你的工作
  • 包管理器:
    • 快速安装和更新开发工具
    • 保持开发环境有序、最新

🧩 说明

小贴士

安装过程是交互式的——Cline 会一步步引导你!

  • 所有命令都会在执行前展示给你确认。
  • 如果遇到问题,Cline 会协助你排查。
  • 某些步骤可能需要你输入电脑密码。

🧑‍💻 新手额外小贴士

认识终端(Terminal)

终端是一个可以输入命令与电脑交互的应用。

  • macOS: 在 Spotlight 搜索"Terminal"打开。
  • 示例:
$ open -a Terminal

了解 VS Code 功能

  • VS Code 内置终端: 直接在 VS Code 里运行命令!
    • 菜单栏选择 查看 > 终端 或按 `Ctrl + ``。
    • 示例:
$ node -v 
v16.14.0
  • 文档视图: 编辑代码文件的地方。
    • 从左侧资源管理器面板打开文件。
  • 问题区: 查看代码中的错误或警告。
    • 点击灯泡图标或 查看 > 问题 进入。

常用功能

  • 命令行界面(CLI): 强大的命令执行工具。
  • 权限: 某些命令需要你授权,这有助于保障系统安全。

On this page