Front-End Development Tools Installation and Configuration (Mac)

Preface

This tutorial will guide you step-by-step into the world of front-end development tools on both Windows and Mac platforms. Together, we will explore how to properly install and configure commonly used development tools, making it eas…


This content originally appeared on DEV Community and was authored by Luna Miller

Preface

This tutorial will guide you step-by-step into the world of front-end development tools on both Windows and Mac platforms. Together, we will explore how to properly install and configure commonly used development tools, making it easy for you to take your first step in front-end development. Whether you are a beginner or an experienced developer, this tutorial will help you resolve various issues during the installation process of development tools, allowing you to focus more on writing code. Let's get started!

VSCode (Free and User-Friendly Code Editor)

Click to Download: https://code.visualstudio.com/Download

Image description

  1. The official website provides three installation methods. To determine your chip type, there are two ways:

First method: Click the Apple icon in the top left corner -> About This Mac -> Check the chip type.
Second method: Use a command. Open the terminal and input uname -m. It returns x86_64 (Intel-based) or arm64 (Apple silicon-based).
Intel chip: Intel chip.
Apple silicon: Apple silicon (commonly known as M series chips).
Universal: Universal version.

  1. After the download is complete, click to view.

  2. Actually, it's not over yet because it's currently in the Downloads folder and not in our Launchpad, so we can't find it there. Generally, software installed on Mac is in dmg format. After clicking it, drag the compressed file to the Applications folder. This completes the installation. Since we downloaded the zip format, it directly contains the application. To place it in the Applications folder, click Finder -> Drag the downloaded file to Applications. This completes the installation.

  3. When we run the program, a dialog box will ask if you want to open it. Click Open to enter the VSCode interface, and you can start using it.

Image description

  1. Useful plugin recommendations will be shared at the end.

ServBay (Development Environment Management Tool for Mac OS)

Before installing node.js, I want to introduce a tool called ServBay. What is it and what can it do?

ServBay is an all-in-one development environment management tool designed to ease the burden of maintaining development environments. It allows developers to start coding within minutes without spending time installing and debugging the development environment.

Official website: ServBay

Image description

ServBay supports various versions of Node.js, ensuring you can choose the appropriate version for development and deployment based on your project requirements. Here are some common versions of Node.js supported by ServBay

We can easily install and manage Node.js through ServBay's GUI panel. Here are the steps to install Node.js via the ServBay GUI panel:

  1. Open the ServBay GUI panel.
  2. Navigate to the Services section.
  3. Select the Node.js version you need.
  4. Click the green Install button and wait for the installation to complete.

Image description

Bundled Modules

ServBay provides several package managers for Node.js, making it convenient to manage project dependencies:

npm (Node Package Manager): The default Node.js package manager and the most widely used.

pnpm: An efficient package manager that saves disk space and speeds up installation.

yarn: A package manager developed by Facebook that offers stable and efficient dependency management.

Note: ServBay also allows easy switching, installation, and viewing of node versions. The reason I recommend using ServBay is that during actual development, if multiple projects are running simultaneously and they rely on different versions of node, it would be very inconvenient to uninstall the current version and install the required version each time. ServBay can help solve this problem, no need nvm.

Git (Version Control Tool)

Mac actually comes with git. Input git -v in the terminal. If a version number appears, git is installed; otherwise, it needs to be installed.

Download the installer from the official website. Official website: git-scm.com

Image description

To verify the installation, open the terminal and input git -v. If a version number appears, the installation was successful.

VSCode Useful Plugins

  1. Theme Recommendation: Ayu (available in dark and light modes, I personally prefer dark mode).
  2. ESLint (Helps you find and fix issues in your code).
  3. Prettier (Formats code to maintain a consistent style, usually used with ESLint).
  4. GitLens (Displays the history of each line of code, among other features).
  5. Guides (Helps locate the start and end of brackets when code is deeply nested).
  6. Image Preview (Previews images, very useful).
  7. Material Icon Theme (Attractive icons).
  8. Path Intellisense (Auto-completes file paths, very useful).
  9. Todo Tree (Adds a TODO icon after downloading, allowing quick navigation to comments like //TODO xxx).
  10. Volar (A must-have for Vue developers, provides code highlighting and other features).


This content originally appeared on DEV Community and was authored by Luna Miller


Print Share Comment Cite Upload Translate Updates
APA

Luna Miller | Sciencx (2024-07-13T14:47:24+00:00) Front-End Development Tools Installation and Configuration (Mac). Retrieved from https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/

MLA
" » Front-End Development Tools Installation and Configuration (Mac)." Luna Miller | Sciencx - Saturday July 13, 2024, https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/
HARVARD
Luna Miller | Sciencx Saturday July 13, 2024 » Front-End Development Tools Installation and Configuration (Mac)., viewed ,<https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/>
VANCOUVER
Luna Miller | Sciencx - » Front-End Development Tools Installation and Configuration (Mac). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/
CHICAGO
" » Front-End Development Tools Installation and Configuration (Mac)." Luna Miller | Sciencx - Accessed . https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/
IEEE
" » Front-End Development Tools Installation and Configuration (Mac)." Luna Miller | Sciencx [Online]. Available: https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/. [Accessed: ]
rf:citation
» Front-End Development Tools Installation and Configuration (Mac) | Luna Miller | Sciencx | https://www.scien.cx/2024/07/13/front-end-development-tools-installation-and-configuration-mac/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.