Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid

I can't add this lib esp8266 GitHub - esp8266/Arduino: ESP8266 core for Arduino
Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid

Hi @cjf333388. The reason for the error is that it is an Arduino boards platform, not a library. The installation procedure is different for boards platforms than for libraries. You can't install a boards platform using the library installation system.

You can learn how to install the "esp8266" boards platform by reading the instructions provided in the platform's documentation:

https://github.com/esp8266/Arduino#installing-with-boards-manager

Give it a try and then let us know if you have any questions or problems.

Thanks for your advice @ptillisch .
But because my internet connection had some errors(I am in China), i can't use boards manager to download this. I only can download this in github. How can i install the boards platform locally?