We can use yarn or npm. Or Alternatively a VScode Extension can also serve the purpose.
Lets have a look how to get playwright using npm.
Playwright is a test automation tool specifically engineered for the modern web and generally runs very quickly, even for complex testing projects.
Playwright enables reliable end-to-end testing for modern web apps.