公式通りに下記コマンドを実行
npm init playwright@latest
takuya@MacBook-Pro frontend % npm init playwright@latest
(省略)
Installing Playwright Test (npm install --save-dev @playwright/test)…
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "link:": link:./src/types
npmのバージョンが古いと起きるらしいので(pnpmばかり使っていた)、pnpmコマンドの方を実行
pnpm create playwright
成功した。OK!
✔ Success! Created a Playwright Test project