So you want to do modern web development on Windows 10 or Windows 11. Brave choice. This guide gets NodeJS installed and verifies npm and npx so you can scaffold a React or ExpressJS app without pulling out your hair. Read on for the practical steps and the small sarcastic comments you did not ask for but secretly needed.
Grab the LTS build from the official Node.js website for most projects. LTS is the stable option for production and for anyone who prefers their dependencies not to explode overnight. Only chase the Current build if you enjoy surprises and debugging things that were written last week.
Double click the downloaded installer and follow the prompts. The Windows installer will add Node.js and the npm package manager to your system by default. For typical React ExpressJS or Angular work choose the default options unless you have a specific reason not to.
Open PowerShell or Command Prompt and run these commands to confirm the runtime and package manager are available.
node -v
npm -v
If you see version numbers then congratulations you passed the first test. If the terminal says command not found you will need to adjust your PATH.
If Windows cannot find node or npm add the Node.js installation folder to the PATH environment variable through the Windows system settings. Typical path is C:\Program Files\nodejs but yours may vary. After editing the environment variables restart the terminal window to apply the change.
Try these commands to make sure package scaffolding and scripts work. npx will run packages without global installs which is handy.
npx create-react-app my-app
cd my-app
npm start
Or if you just want a minimal package.json try
mkdir demo
cd demo
npm init -y
Note that create-react-app may use Git for template setup. Install Git separately if you do not already have it. Git is not bundled with Node and will be needed for some project templates and hooks.
After these steps you will have a working Node environment ready for React ExpressJS Angular or other Node based projects. Stick with LTS for stability and install Git for source control. Now go build something useful or at least break something in a controlled way and then fix it with pride.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.