본문 바로가기

Server

Playwright 설치해보기

lmstudio에  mcp로 붙일 playwright가 필요해졌다. 그래서 한번 설치해봤다.

 

결과적으로는 npm init playwright@latest 한번 해주면 세팅이 거의 끝났다.

 

lmstudio 링크하는것도 매우 간편하게 끝...

 

아래는 실패기.. 굳이 git clone 할 필요도 없더라. 

 

 

 

https://github.com/microsoft/playwright

 

GitHub - microsoft/playwright: Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. - microsoft/playwright

github.com

 

여기꺼 clone 해주고

 

npm init playwright@latest

 

이것만 눌러주면 끝날것 처럼 되어있는데 과연?

 

Error: Cannot find module 'node:events'

 

라는 에러가 나는데? 

 

 

이 문제라고 한다. 

 

그냥 새 컴퓨터에 해봐야겠다..