maakbaas/esp8266-iot-framework

No Webserver?

Closed this issue · 6 comments

t10r commented

Hi,

even the building was successful and the configuration.json and dashboard.json should work, I get this screen on the dashboard.

image

The developer of the software tried it also with my setup and get the same result.

My setup:

OS: Linux Mint 20.2
DevTool: Vscodium

If I can provide any more information please ask.

Thanks
Tim

Did you use the -DREBUILD_HTML flag?

t10r commented

Yes, that is my platformio.ino

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:nodemcuv2]
platform = espressif8266@3.0.0
board = nodemcuv2
framework = arduino
board_build.f_cpu = 160000000L
upload_speed = 460800
monitor_speed = 115200
build_type = debug
monitor_filters = esp8266_exception_decoder
lib_deps = 
	ArduinoJson
	ESP8266 IoT Framework
	me-no-dev/ESP Async WebServer @ ^1.2.3
	knolleary/PubSubClient @ ^2.8
build_flags = -DCONFIG_PATH=configuration.json -DDASHBOARD_PATH=dashboard.json -DREBUILD_HTML
extra_scripts = scripts/preBuild.py

And can you share your build output log?

t10r commented

Sure

 so@soso  ~/workspace/Ferraris_MQTT_Energy_Counter_Meter_TCRT5000/source/Ferraris_MQTT_Energy_Counter_Meter_TCRT5000   master ● ? ⍟1  pio run  
Processing nodemcuv2 (platform: espressif8266@3.0.0; board: nodemcuv2; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (3.0.0) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 160MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 3.30000.210519 (3.0.0) 
 - tool-esptool 1.413.0 (4.13) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - toolchain-xtensa 2.100200.0 (10.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Running npm run build...
npm <command>

Usage:

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term>
npm help npm       more involved overview

All commands:

    access, adduser, audit, bin, bugs, cache, ci, completion,
    config, dedupe, deprecate, diff, dist-tag, docs, doctor,
    edit, exec, explain, explore, find-dupes, fund, get, help,
    hook, init, install, install-ci-test, install-test, link,
    ll, login, logout, ls, org, outdated, owner, pack, ping,
    pkg, prefix, profile, prune, publish, rebuild, repo,
    restart, root, run-script, search, set, set-script,
    shrinkwrap, star, stars, start, stop, team, test, token,
    uninstall, unpublish, unstar, update, version, view, whoami

Specify configs in the ini-formatted file:
    /home/so/.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@8.1.4 /usr/local/lib/node_modules/npm
Found 41 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.18.5
|-- <ESP8266 IoT Framework> 1.9.0
|   |-- <ArduinoJson> 6.18.5
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <DNSServer> 1.1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <EEPROM> 1.0
|   |-- <LittleFS(esp8266)> 0.1.0
|   |-- <ESP Async WebServer> 1.2.3
|   |   |-- <ESPAsyncTCP> 1.2.2
|   |   |-- <Hash> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ArduinoJson> 6.18.5
|-- <ESP Async WebServer> 1.2.3
|   |-- <ESPAsyncTCP> 1.2.2
|   |-- <Hash> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoJson> 6.18.5
|-- <PubSubClient> 2.8.0
|-- <LittleFS(esp8266)> 0.1.0
Building in debug mode
Running npm run build...
npm <command>

Usage:

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term>
npm help npm       more involved overview

All commands:

    access, adduser, audit, bin, bugs, cache, ci, completion,
    config, dedupe, deprecate, diff, dist-tag, docs, doctor,
    edit, exec, explain, explore, find-dupes, fund, get, help,
    hook, init, install, install-ci-test, install-test, link,
    ll, login, logout, ls, org, outdated, owner, pack, ping,
    pkg, prefix, profile, prune, publish, rebuild, repo,
    restart, root, run-script, search, set, set-script,
    shrinkwrap, star, stars, start, stop, team, test, token,
    uninstall, unpublish, unstar, update, version, view, whoami

Specify configs in the ini-formatted file:
    /home/so/.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@8.1.4 /usr/local/lib/node_modules/npm
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/WiFiManager.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/certStore.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/configManager.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/dashboard.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/fetch.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/generated/config.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/timeSync.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/updater.cpp.o
Compiling .pio/build/nodemcuv2/libc81/ESP8266 IoT Framework/webServer.cpp.o
Compiling .pio/build/nodemcuv2/src/main.cpp.o
Generating LD script .pio/build/nodemcuv2/ld/local.eagle.app.v6.common.ld
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFi.cpp.o
src/main.cpp: In function 'void callback(char*, byte*, unsigned int)':
src/main.cpp:164:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  164 |   for (int i = 0; i < length; i++) {
      |                   ~~^~~~~~~~
src/main.cpp: In function 'void loop()':
src/main.cpp:727:41: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
  727 |         sprintf(dash.data.Wifi_RSSI, "%ld", rssi) ;
      |                                       ~~^   ~~~~
      |                                         |   |
      |                                         |   int
      |                                         long int
      |                                       %d
src/main.cpp:770:65: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int16_t' {aka 'short int'} [-Wsign-compare]
  770 |     if (debouncePrevious1 == 0 || (millis() - debouncePrevious1 > configManager.data.debounce_1))
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.cpp:778:65: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int16_t' {aka 'short int'} [-Wsign-compare]
  778 |     if (debouncePrevious2 == 0 || (millis() - debouncePrevious2 > configManager.data.debounce_2))
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.cpp:786:65: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int16_t' {aka 'short int'} [-Wsign-compare]
  786 |     if (debouncePrevious3 == 0 || (millis() - debouncePrevious3 > configManager.data.debounce_3))
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.cpp:794:65: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int16_t' {aka 'short int'} [-Wsign-compare]
  794 |     if (debouncePrevious4 == 0 || (millis() - debouncePrevious4 > configManager.data.debounce_4))
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/WiFiClient.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/WiFiServer.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/WiFiUdp.cpp.o
Compiling .pio/build/nodemcuv2/libe2f/ESP8266WiFi/enable_wifi_at_boot_time.cpp.o
Compiling .pio/build/nodemcuv2/lib516/ESP8266HTTPClient/ESP8266HTTPClient.cpp.o
Compiling .pio/build/nodemcuv2/lib300/DNSServer/DNSServer.cpp.o
Compiling .pio/build/nodemcuv2/lib1b6/EEPROM/EEPROM.cpp.o
Archiving .pio/build/nodemcuv2/libe2f/libESP8266WiFi.a
Indexing .pio/build/nodemcuv2/libe2f/libESP8266WiFi.a
Compiling .pio/build/nodemcuv2/liba12/LittleFS/LittleFS.cpp.o
Archiving .pio/build/nodemcuv2/lib300/libDNSServer.a
Indexing .pio/build/nodemcuv2/lib300/libDNSServer.a
Archiving .pio/build/nodemcuv2/lib1b6/libEEPROM.a
Compiling .pio/build/nodemcuv2/liba12/LittleFS/lfs.c.o
Indexing .pio/build/nodemcuv2/lib1b6/libEEPROM.a
Compiling .pio/build/nodemcuv2/liba12/LittleFS/lfs_util.c.o
Compiling .pio/build/nodemcuv2/libb4f/ESPAsyncTCP/AsyncPrinter.cpp.o
Archiving .pio/build/nodemcuv2/lib516/libESP8266HTTPClient.a
Indexing .pio/build/nodemcuv2/lib516/libESP8266HTTPClient.a
Compiling .pio/build/nodemcuv2/libb4f/ESPAsyncTCP/ESPAsyncTCP.cpp.o
Compiling .pio/build/nodemcuv2/libb4f/ESPAsyncTCP/ESPAsyncTCPbuffer.cpp.o
Archiving .pio/build/nodemcuv2/liba12/libLittleFS.a
Indexing .pio/build/nodemcuv2/liba12/libLittleFS.a
Compiling .pio/build/nodemcuv2/libb4f/ESPAsyncTCP/SyncClient.cpp.o
Compiling .pio/build/nodemcuv2/libb4f/ESPAsyncTCP/tcp_axtls.c.o
Compiling .pio/build/nodemcuv2/lib195/Hash/Hash.cpp.o
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/AsyncEventSource.cpp.o
Archiving .pio/build/nodemcuv2/lib195/libHash.a
Indexing .pio/build/nodemcuv2/lib195/libHash.a
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/AsyncWebSocket.cpp.o
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/SPIFFSEditor.cpp.o
Archiving .pio/build/nodemcuv2/libb4f/libESPAsyncTCP.a
Indexing .pio/build/nodemcuv2/libb4f/libESPAsyncTCP.a
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/WebAuthentication.cpp.o
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/WebHandlers.cpp.o
In file included from .pio/libdeps/nodemcuv2/ESP Async WebServer/src/SPIFFSEditor.cpp:1:
.pio/libdeps/nodemcuv2/ESP Async WebServer/src/SPIFFSEditor.h:16:101: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   16 |     SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
      |                                                                                                     ^~~~~~
In file included from .pio/libdeps/nodemcuv2/ESP Async WebServer/src/ESPAsyncWebServer.h:27,
                 from .pio/libdeps/nodemcuv2/ESP Async WebServer/src/SPIFFSEditor.h:3,
                 from .pio/libdeps/nodemcuv2/ESP Async WebServer/src/SPIFFSEditor.cpp:1:
/home/so/.platformio/packages/framework-arduinoespressif8266@3.30000.210519/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/WebRequest.cpp.o
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/WebResponses.cpp.o
Compiling .pio/build/nodemcuv2/libef4/ESP Async WebServer/WebServer.cpp.o
Compiling .pio/build/nodemcuv2/lib12b/PubSubClient/PubSubClient.cpp.o
.pio/libdeps/nodemcuv2/PubSubClient/src/PubSubClient.cpp: In member function 'boolean PubSubClient::publish_P(const char*, const uint8_t*, unsigned int, boolean)':
.pio/libdeps/nodemcuv2/PubSubClient/src/PubSubClient.cpp:523:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
  523 |     return (rc == expectedLength);
      |             ~~~^~~~~~~~~~~~~~~~~
Archiving .pio/build/nodemcuv2/lib12b/libPubSubClient.a
Indexing .pio/build/nodemcuv2/lib12b/libPubSubClient.a
Archiving .pio/build/nodemcuv2/libFrameworkArduinoVariant.a
Indexing .pio/build/nodemcuv2/libFrameworkArduinoVariant.a
Compiling .pio/build/nodemcuv2/FrameworkArduino/Crypto.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Esp-frag.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Esp-version.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Esp.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/FS.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/FSnoop.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/LwipDhcpServer-NonOS.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/LwipDhcpServer.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/LwipIntf.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/LwipIntfCB.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/MD5Builder.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Print.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Schedule.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/StackThunk.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/StreamSend.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Tone.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/TypeConversion.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Updater.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/WString.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/abi.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/aes_unwrap.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/base64.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/cbuf.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/cont.S.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/cont_util.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_app_entry_noextra4k.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_eboot_command.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_features.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_flash_quirks.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_flash_utils.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_i2s.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_main.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_non32xfer.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_noniso.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_phy.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_postmortem.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_si2c.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_sigma_delta.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_spi_utils.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_timer.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_vm.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_waveform_phase.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_waveform_pwm.cpp.o
Archiving .pio/build/nodemcuv2/libef4/libESP Async WebServer.a
Indexing .pio/build/nodemcuv2/libef4/libESP Async WebServer.a
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_wiring.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_wiring_analog.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_wiring_digital.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_wiring_pulse.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_wiring_pwm.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/core_esp8266_wiring_shift.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/crc32.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/debug.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/exc-c-wrapper-handler.S.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/exc-sethandler.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/flash_hal.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/gdb_hooks.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/heap.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/hwdt_app_entry.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/libb64/cdecode.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/libb64/cencode.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/libc_replacements.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/mmu_iram.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/reboot_uart_dwnld.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/spiffs/spiffs_cache.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/spiffs/spiffs_check.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/spiffs/spiffs_gc.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/spiffs/spiffs_hydrogen.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/spiffs/spiffs_nucleus.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/spiffs_api.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/sqrt32.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/stdlib_noniso.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/time.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/uart.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/umm_malloc/umm_info.c.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/umm_malloc/umm_integrity.c.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/umm_malloc/umm_local.c.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/umm_malloc/umm_malloc.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/umm_malloc/umm_poison.c.o
Archiving .pio/build/nodemcuv2/libFrameworkArduino.a
Indexing .pio/build/nodemcuv2/libFrameworkArduino.a
Linking .pio/build/nodemcuv2/firmware.elf
Retrieving maximum program size .pio/build/nodemcuv2/firmware.elf
Checking size .pio/build/nodemcuv2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [======    ]  55.3% (used 45320 bytes from 81920 bytes)
Flash: [========= ]  89.3% (used 932264 bytes from 1044464 bytes)
Building .pio/build/nodemcuv2/firmware.bin
Creating BIN file ".pio/build/nodemcuv2/firmware.bin" using "/home/so/.platformio/packages/framework-arduinoespressif8266@3.30000.210519/bootloaders/eboot/eboot.elf" and ".pio/build/nodemcuv2/firmware.elf"

Something is wrong with your toolchain. In the log the help for npm is shown, meaning it does not actually call the npm command. It should show like this:

Running npm run build...

> esp@1.0.0 build
> webpack --mode=production
t10r commented

Yes, that could be. But want should be wrong? Which npm Version is required to build your code sucessfull?