xyzroe / XZG

Unifies the best innovations from previous Zigbee gateway projects into a single, comprehensive solution
https://xzg.xyzroe.cc/
GNU General Public License v3.0
135 stars 27 forks source link

Unable to build XZG firmware - src/web.cpp:23:10: fatal error: webh/html/PAGE_VPN.html.gz.h: No such file or directory #100

Open victorhooi opened 4 months ago

victorhooi commented 4 months ago

Describe the bug Unable to build XZG

I've setup a Debian machine, and per the README have installed npm (from Debian repos) and platformio (using their installer script).

However, when I try to run platformio run, I get the following error:

`` $ platformio run Processing prod-solo (platform: https://github.com/tasmota/platform-espressif32/releases/download/2023.07.00/platform-espressif32.zip; board: esp32-solo1; framework: arduino)

Verbose mode can be enabled via -v, --verbose option

██╗░░██╗███████╗░██████╗░ ╚██╗██╔╝╚════██║██╔════╝░ ░╚███╔╝░░░███╔═╝██║░░██╗░ ░██╔██╗░██╔══╝░░██║░░╚██╗ ██╔╝╚██╗███████╗╚██████╔╝ ╚═╝░░╚═╝╚══════╝░╚═════╝░

Build: 20240730

Try to build WEB files

npm install --silent sh: 1: npm: not found Error 127 npx gulp xzg sh: 1: npx: not found Error 127

Finish building WEB files

██╗░░██╗███████╗░██████╗░ ╚██╗██╔╝╚════██║██╔════╝░ ░╚███╔╝░░░███╔═╝██║░░██╗░ ░██╔██╗░██╔══╝░░██║░░╚██╗ ██╔╝╚██╗███████╗╚██████╔╝ ╚═╝░░╚═╝╚══════╝░╚═════╝░

CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-solo1.html PLATFORM: Espressif 32 (2023.7.0) > Espressif Generic ESP32-solo1 4M Flash HARDWARE: ESP32 160MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Environment Status Duration


prod-solo FAILED 00:00:06.975 ======================================================================================================= 1 failed, 0 succeeded in 00:00:06.975 =======================================================================================================

xyzroe commented 4 months ago

npm install --silent sh: 1: npm: not found Error 127 npx gulp xzg sh: 1: npx: not found Error 127

Your machine doesn't have npm

SAOPP commented 2 months ago

Maybe it's better to clone the repository and build it in the cloud?