TestingDocs.com logoTestingDocs.com
Automation learning lab
TestingDocs • Self-paced course

Playwright Automation
Self Study Guide

Start from zero. Learn JavaScript and TypeScript, automate browsers, and build reliable end-to-end tests.

60 chaptersBeginner friendlyHands-on practice
JavaScript / Chapter 2 of 60~12 min • Beginner
Chapter 02JavaScript

Node.js, npm and VS Code

Node.js executes JavaScript outside a browser. npm manages packages and project metadata. VS Code is an editor with an integrated terminal. Install a Node.js release supported by the current Playwright documentation, then open a dedicated project folder.

How it works

Step-by-step walkthrough

  1. Install Node.js
  2. Open a terminal in VS Code
  3. Check versions and initialize a project

Example

Terminal
node --version
npm --version
mkdir testingdocs-lab
cd testingdocs-lab
npm init -y
Expected result: Version numbers and package.json
💡 Point to remember
Do not install random packages with administrator privileges.

✎ Your practice task

Find package.json in your project folder.

Knowledge check

Which command initializes package.json?

🌐 Continue learning