To set up your development environment can be a hassle - especially if you try to do it en a MS Windows environment !
In the Introduction to Block Development: Build your first custom block, there is a guide to Set up your development environment.
You'll need the node/npm installed! But in the Set up your development environment, there's not any direct description on how to do this on Windows.
The guide recommends using NVM (Node Version Manager) to handle different versions of Node. Unfortunately, NVM is mostly supported on Linux and Mac (Uses POSIX-compliant shell). It should work through WSL (Windows Subsystem for Linux) depending on the version of WSL.
This tutorial shows a WordPress recommended way !
The way recommended here:
If you’re on a Windows machine, you will need to install the Chocolatey package manager for Windows to install nvm. First open PowerShell with administrative privileges by right-clicking on the PowerShell menu item and selecting Run as Administrator. Then browse to the Chocolatey setup documentation and scroll down to the Install with PowerShell instructions. Copy the instructions and right-click in the PowerShell window to paste them.
See the Video or read the Video Transcript to learn more.