Skip to the workspace
Pebellslearn by building

Computer Science / Installation & setup

CLI tools & setup

Prepare your workspace, run a small example and check the result before starting the course.

A terminal is where you type commands. A runtime or compiler runs your code; a package manager installs project dependencies. Follow the tools and command surfaces named in this course’s guide.

Already set up? Continue to Arrays — One Block of Memory →

BEFORE THE FIRST CODING TASK

Your computer, ready to learn.

JavaScript on your PC · npm

Choose one language for initial executable examples. System and algorithm topics may need additional tools later. Create a new practice folder in your editor and open its integrated terminal there. Use a separate folder from personal or production projects. Choose one package manager for this practice project. Follow the project’s existing manager and lockfile when joining a team. Use a new folder if comparing another setup.

Already configured? Run the verification steps and continue. Use the command surface labelled beside each snippet, such as your terminal or SQL console.

Files to create

Save these files in the practice folder described above before running its file commands.

hello.js
console.log("My workspace is ready");
  1. 1

    Install a supported Node.js LTS release using the official instructions for your OS. Reopen the terminal, then check both tools.

    Windows · Terminal
    node --version
    npm --version

    What you should see: Both commands print a version. Compare Node compatibility with the framework guide before scaffolding.

    Something didn’t work?

    If a command is missing, check installation and PATH, then reopen the terminal. Do not change system-wide execution policy to bypass a blocked npm script; on Windows try npm.cmd or Command Prompt.

  2. 2

    Set up npm after Node.js. Follow its official OS instructions if installation needs a different method.

    Windows · Terminal
    npm --version

    What you should see: npm prints its version. Keep it with your project notes.

    Something didn’t work?

    Check the linked supported Node/OS versions. Reopen your terminal after installation. For permissions or PATH errors, use the official user-level installation guidance; do not disable security checks.

  3. 3

    In your new practice folder, create the package manifest.

    Windows · Terminal
    npm init -y
    npm install

    What you should see: package.json records the project. Keep the lockfile created by your chosen manager: package-lock.json, pnpm-lock.yaml or yarn.lock.

    Something didn’t work?

    Run this in an empty practice folder. A JavaScript file needs Node to execute; package managers manage project dependencies.

  4. 4

    Save hello.js in this folder and run it.

    Windows · Terminal
    node hello.js

    What you should see: The terminal prints: My workspace is ready

    Something didn’t work?

    Check that the terminal is in the folder containing hello.js and that the editor did not save hello.js.txt.

Check it yourself

Change the message, save and rerun. Explain why this terminal program has no document or window object. This is a local setup check, not a language assessment.

This is a self-check; it does not mark a lesson or course complete.

Official setup guides & version requirements
My workspace notes

Notes stay in this browser. They are not uploaded or assessed.

Continue to Arrays — One Block of Memory →
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.