playwright.dev icon indicating copy to clipboard operation
playwright.dev copied to clipboard

[Question] What Installing Prerequisites have to be met

Open surfmuggle opened this issue 3 years ago • 1 comments

I am conviced that someone new to coding and javascript would have difficulties to install playwright.

It would be great if the Installing Prerequisites would be documented in the installation intro.

Two Questions

  1. Which Installing Prerequisites for playwright do exist
  2. Which Installation Option (1, 2 or 3, other) would you recommend for a novice?

Installation Option 1

  1. first install Node.js
  2. then install npm
  3. then install playwright
  4. optional: install an IDE like Visual Studio Code

Or is the following sequence better.

Installation Option 2

  1. first install Visual Studio Code
  2. then install Node.js
  3. then install npm
  4. then install playwright.

Installation Option 3

For a novice the following might almost seem like a catch-22

  • npm recommends to install both node.js and npm using nvm
  • playwright recommends to install itself via VS Code
  • to install nvm on windows the recommendation is to use WSL - Windows Subsystem for Linux

This means the recommended way for windows is

  1. Install Windows Subsystem for Linux
  2. then install nvm
  3. then install Node.js
  4. then install npm
  5. then install Visual Studio Code
  6. and then install playwright.

A recommendation in the installation guide or here would be very helfpfull and appreciated. Thanks

surfmuggle avatar Jun 24 '22 07:06 surfmuggle

Thanks for the detail issue @surfmuggle. I am working on a new and simplified getting started guide, one for vscode users and one for cli users and will for sure take your suggestions into consideration. Funnily enough I am also working on WSL so have had to go through the whole installation process just recently too. Will come up with a solution and look forward to hearing your feedback on it.

debs-obrien avatar Jul 05 '22 11:07 debs-obrien

closing this as docs have been updated and includes installation info for langs that need it

debs-obrien avatar Nov 29 '22 10:11 debs-obrien