Skip to content

Requirements

Mehmet Can Ay edited this page Oct 10, 2024 · 4 revisions
  • Python >= 3.10
  • Angular = 18.2.x
  • Node.js >= 18.9.1
  • TypeScript >= 5.4.0, <5.6.0

Contents


How to Install the Requirements

  1. Windows
  2. Linux

How to Install the Requirements on Windows

Python

  1. Download the Python Installer:

    • Visit the official Python website.
    • Ensure you are downloading Python version 3.10 or higher (preferably 3.12).
    • Download the .exe installer for your system.
  2. Run the Installer:

    • Open the downloaded Python installer.
    • Check the box that says "Add Python to PATH" at the bottom of the installer window.
    • Click "Customize Installation" if you want to select additional features like pip or IDLE, or simply click "Install Now" for the default options.
  3. Verify Installation:

    • Open Command Prompt or PowerShell.

    • Run:

      python --version
    • Ensure it returns Python version 3.10 or higher.

  4. Verify pip installation:

    • Run:

      pip --version
    • If pip is not installed, install it manually:

      python -m ensurepip --upgrade

Node.js

  1. Download Node.js Installer:

  2. Run the Installer:

    • Open the .msi installer and follow the prompts.
    • Ensure "Add to PATH" is selected.
  3. Verify Installation:

    • Run the following to check versions:

      node --version
      npm --version
  4. Update npm (if necessary):

    • Run

      npm install -g npm

TypeScript

  1. Install TypeScript globally via npm:

    • Run

      npm install -g typescript5.x.x
    • Replace x.xwith the version (e.g., 5.5.4).

  2. Verify Installation:

    • Run:

      tsc --version
    • Ensure the version is >= 5.4.0 and < 5.6.0

Angular

  1. Install Angular CLI:

  2. Verify Angular Installation:

    • Run:

      ng --version

How to Install the Requirements on Linux

Python

  1. Update the package list:

    • Run:

      sudo apt update
  2. Install dependencies for building Python:

    sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git
  3. Install Python using pyenv:

    • Run:

      curl https://pyenv.run | bash
    • Add the following lines to your .bashrc or .zshrc:

      export PATH="$HOME/.pyenv/bin:$PATH"
      eval "$(pyenv init --path)"
      eval "$(pyenv init -)"
      eval "$(pyenv virtualenv-init -)"
    • Restart the terminal and install Python:

      pyenv install 3.12.x
      pyenv global 3.12.x
  4. Verify Installation:

    python --version
    pip --version

Node.js

  1. Install Node.js using nvm

    • Run:

      curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
    • Restart the terminal, then run:

      nvm install 20
  2. Verify Installation:

    node --version
    npm --version

TypeScript

  1. Install TypeScript:

  2. Verify Installation:

    tsc --version

Angular

  1. Install Angular CLI:

  2. Verify Angular Installation:

    ng --version