WS-SCRCPY Notes
Error
For the first time, I used the version of nodejs is 2.x.When I excute the command “npm install”,it apears a lot of errors.Then I use the command “npm ci” to reinstall it, it’s seems right.But it shows me a another error “TS2344: Type ‘TE’ does not satisfy the constraint ‘EventMap’. #286” when I run the command “npm start”.
Resolution
I find it was caused by the nodejs20.x,there were some new features comparing with nodejs14.x.
I uninstall the nodejs20.x, and install nodejs14.x, Everything’s okay.
The versions of mine in using:
- Python 3.7.x
- nodejs 14.x
- ws-scrcpy 0.8.0