1. Set up VS Code, Node and DevTools

Aap kis language mein padhna chahoge?

Which language do you want to learn in?

Code aur technical words English mein hi rahenge. Aap baad mein bhi language badal sakte ho.

Lesson 1

Set up VS Code, Node and DevTools

Beginner 40 minutes

You need before starting

  • A computer with Windows, macOS or Linux
  • An internet connection
  • The Google Chrome browser

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

  1. Check that you can install apps on your computer.
  2. Open Google Chrome. Install it from google.com/chrome (opens in a new tab) if you do not have it.
  3. 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

  1. Open code.visualstudio.com/download (opens in a new tab).
  2. Click the Windows button.
  3. Open the downloaded file.
  4. Accept the agreement and click Next on each screen.
  5. Keep Add to PATH ticked. This lets the terminal find VS Code.
  6. Click Install, then Finish.
Check: VS Code opens and shows a Welcome tab.

Step 2: Install Node.js

  1. Open nodejs.org/en/download (opens in a new tab).
  2. Pick the version marked LTS. In October 2026 that was version 24. A newer LTS is fine too.
  3. Click Windows Installer (.msi).
  4. Open the downloaded file.
  5. Click Next on each screen and keep the default options.
  6. Click Install, then Finish.
Check: Node.js shows up in your list of installed apps.

Step 3: Check the tools in the terminal

  1. Close VS Code and open it again. This lets it see the new tools.
  2. Click Terminal in the top menu, then New Terminal.
  3. Type the command below and press Enter.
Terminal
node --version
Output
v24.21.0

Now check npm.

Terminal
npm --version
Output
11.19.0

Last, check VS Code itself.

Terminal
code --version
Output
1.140.0
07f806f999227108933c2e30515b26eecc1fda74
x64

The 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.

Check: All three commands print a version number, not an error.

Step 4: Open DevTools in Chrome

  1. Open any website in Chrome.
  2. Right-click any text on the page.
  3. 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:

ComputerShortcut
Windows and LinuxF12 or Ctrl + Shift + I
macOSCmd + 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.

Check: You see the Elements tab with the page's code.

Output

When every step works, you have:

  • VS Code open with a terminal at the bottom.
  • node --version prints v24.21.0 or higher.
  • npm --version prints 11.19.0 or higher.
  • DevTools opens in Chrome when you press F12.

Common errors

"node" is not recognized (Windows)

You see this in the VS Code terminal:

Output
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:

  1. Close VS Code fully.
  2. Open it again and open a new terminal.
  3. Run node --version again.

If it still fails, restart your computer.

node: command not found (macOS and Linux)

You see a line like this:

Output
bash: node: command not found

Fix:

  1. Close the terminal and open a new one.
  2. Run node --version again.
  3. 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
  1. Open example.com (opens in a new tab) in Chrome.
  2. Right-click Learn more and click Inspect.
  3. Find the highlighted line. It looks like this:
Elements
<a href="https://iana.org/help/example-domains">Learn more</a>
  1. Double-click the words Learn more in that line.
  2. 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.

Check: The link shows My first edit. After a refresh, it shows Learn more again.

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.