Lesson 1
Set up VS Code, Node and DevTools
What you will learn
- Install VS Code, the app where you write code.
- Install Node.js, the tool that runs JavaScript on your computer.
- Open DevTools, the tool inside Chrome that shows how a page is built.
- Check that each tool works.
What it is
VS Code
A code editor is an app for writing code. Think of it as a notebook made only for code.
VS Code is a free code editor from Microsoft. Most web developers use it.
Terminal and commands
A terminal is a window where you type instructions for your computer. Each instruction is called a command. It is like texting your computer, and it texts back.
When you type a command, the computer looks for that tool in a list of folders. PATH is the list of folders your computer searches for commands. If a tool is not on PATH, the terminal cannot find it.
VS Code has a terminal built in. You will learn more about the terminal in the next lesson.
Node.js and npm
JavaScript is the language that makes web pages move and react. Normally only a browser can run it.
Node.js lets your computer run JavaScript outside the browser. It is like a music player for JavaScript files.
npm comes with Node.js. It downloads ready-made code that other people share. Think of it as an app store for code.
A version is a numbered release of a tool, like 24.21.0.
LTS means "long term support".
An LTS version gets fixes for a long time, so it is the safe choice.
Browser and DevTools
A browser is the app you use to open websites, like Chrome.
DevTools is a set of tools hidden inside Chrome. It shows the code behind any page. It is like opening the back of a clock to see the gears.
Why you need it
- Every lesson in this course uses VS Code to write code.
- Shopify's own developer tools run on Node.js.
- You will use DevTools to find and fix problems on real stores.
Before you start
- Check that you can install apps on your computer.
- Open Google Chrome. Install it from google.com/chrome (opens in a new tab) if you do not have it.
- Close other apps, so the installs run fast.
Steps
An installer is a file that puts an app on your computer. You download it first, then open it.
To find a file you downloaded, look near the top-right corner of Chrome. Click the Downloads icon, then click the file name. The file is also in the Downloads folder on your computer.
Step 1: Install VS Code
- Open code.visualstudio.com/download (opens in a new tab).
- Click the Windows button.
- Open the downloaded file.
- Accept the agreement and click Next on each screen.
- Keep Add to PATH ticked. This lets the terminal find VS Code.
- Click Install, then Finish.
- Open code.visualstudio.com/download (opens in a new tab).
- Click the Mac button.
- Open the downloaded file.
- Drag Visual Studio Code into your Applications folder.
- Open VS Code from Applications.
- Press Cmd + Shift + P to open the command box.
- Type
shell commandand pick Shell Command: Install 'code' command in PATH.
Step 7 adds VS Code to the PATH list, so the terminal can find it.
- Open code.visualstudio.com/download (opens in a new tab).
- Click the .deb button for Ubuntu or Debian.
- Open a terminal in your Downloads folder.
- Run the command below. Change the file name to match your download.
sudo apt install ./code_1.140.0-1790759618_amd64.debsudo runs a command as the computer's administrator, so Linux asks for your password.
Type your password and press Enter.
The letters do not show while you type. That is normal.
Wait until the prompt comes back.
The prompt is the line where you type, which ends with $.
Step 2: Install Node.js
- Open nodejs.org/en/download (opens in a new tab).
- Pick the version marked LTS. In October 2026 that was version 24. A newer LTS is fine too.
- Click Windows Installer (.msi).
- Open the downloaded file.
- Click Next on each screen and keep the default options.
- Click Install, then Finish.
- Open nodejs.org/en/download (opens in a new tab).
- Pick the version marked LTS. In October 2026 that was version 24. A newer LTS is fine too.
- Click macOS Installer (.pkg).
- Open the downloaded file.
- Click Continue on each screen, then Install.
- Type your Mac password when asked.
The Node.js site gives these commands for Linux. They use nvm, a small tool that installs Node.js for you.
- Open a terminal.
- Run each command below, one at a time.
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 24Lines that start with # are notes for you. The terminal skips them.
- The first command downloads nvm and installs it.
- The second command loads nvm into this terminal, so you do not need a new one.
- The third command installs Node.js version 24.
Many lines scroll by while it downloads. Wait until the prompt comes back.
Step 3: Check the tools in the terminal
- Close VS Code and open it again. This lets it see the new tools.
- Click Terminal in the top menu, then New Terminal.
- Type the command below and press Enter.
node --versionv24.21.0Now check npm.
npm --version11.19.0Last, check VS Code itself.
code --version1.140.0
07f806f999227108933c2e30515b26eecc1fda74
x64The first line is the VS Code version.
The second line is a long ID for this exact build of VS Code. Yours may be different.
The third line is the type of chip in your computer, like x64 or arm64.
You do not need to remember it.
Step 4: Open DevTools in Chrome
- Open any website in Chrome.
- Right-click any text on the page.
- Click Inspect.
To right-click, press the right button of your mouse. On a laptop touchpad, click with two fingers, or press its bottom-right corner.
A panel opens on the side or bottom of the page. The Elements tab shows the page's code.
You can also open DevTools with a shortcut:
| Computer | Shortcut |
|---|---|
| Windows and Linux | F12 or Ctrl + Shift + I |
| macOS | Cmd + Option + I |
The code you see is HTML. HTML is the text and structure of a page, like the bones of a body. You will learn HTML in Module B.
Output
When every step works, you have:
- VS Code open with a terminal at the bottom.
node --versionprintsv24.21.0or higher.npm --versionprints11.19.0or higher.- DevTools opens in Chrome when you press F12.
Common errors
"node" is not recognized (Windows)
You see this in the VS Code terminal:
The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.Why: VS Code was open while Node.js was being installed. It does not know about the new tool yet.
Fix:
- Close VS Code fully.
- Open it again and open a new terminal.
- Run
node --versionagain.
If it still fails, restart your computer.
node: command not found (macOS and Linux)
You see a line like this:
bash: node: command not foundFix:
- Close the terminal and open a new one.
- Run
node --versionagain. - On Linux, run the three nvm commands again if it still fails.
"code" is not recognized
Why: VS Code is not on the PATH list.
Fix on Windows: Run the VS Code installer again. Keep Add to PATH ticked.
Fix on macOS: Do step 6 and step 7 of the macOS install again.
F12 does nothing on a Mac
Many Mac keyboards need the Fn key for F12. Use Cmd + Option + I instead.
Try it yourself
Practice task
Task: Open example.com (opens in a new tab). Use DevTools to change the Learn more link text to My first edit.
Hints:
- Right-click the Learn more link and click Inspect.
- In the Elements tab, double-click the words Learn more in the code.
- Press Enter when you finish typing.
Expected result: The link on the page now says My first edit.
Show solution
- Open example.com (opens in a new tab) in Chrome.
- Right-click Learn more and click Inspect.
- Find the highlighted line. It looks like this:
<a href="https://iana.org/help/example-domains">Learn more</a>- Double-click the words Learn more in that line.
- Type My first edit and press Enter.
Now refresh the page. The link says Learn more again. DevTools changes only your copy of the page, and only until you refresh.
Quick recap
- VS Code is where you write code.
- The terminal is where you type commands.
- Node.js runs JavaScript on your computer. npm comes with it.
- Use the LTS version of Node.js.
- DevTools shows the code behind any page. Open it with Inspect or F12.
- Changes in DevTools go away when you refresh.