maakbaas / esp8266-iot-framework

Framework for IoT projects implementing HTTPS requests, a React web interface, WiFi manager, live dashboard, configuration manager, file manager and OTA updates.
GNU General Public License v3.0
417 stars 113 forks source link

npm ERROR! #72

Closed Shalke04 closed 3 years ago

Shalke04 commented 3 years ago

Hi, Im trying to build Dashboard example and Im getting these errors although it compiles fine. But with these errors dashboard doesnt work. Any advice?

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_08_26_277Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_08_28_874Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes) ==================================================================== [SUCCESS] Took 7.51 seconds ==================================================================== Terminal will be reused by tasks, press any key to close it.

Executing task in folder CleanProject2: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

esp@1.0.0 build C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework webpack --mode=production

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_10_13_246Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_10_15_765Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes) ==================================================================== [SUCCESS] Took 7.41 seconds ==================================================================== Terminal will be reused by tasks, press any key to close it.

Executing task in folder CleanProject2: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

esp@1.0.0 build C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework webpack --mode=production

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_14_57_650Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_15_00_109Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes) ==================================================================== [SUCCESS] Took 7.10 seconds ==================================================================== Terminal will be reused by tasks, press any key to close it.

Executing task in folder CleanProject2: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

esp@1.0.0 build C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework webpack --mode=production

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_18_22_676Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_18_24_985Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes) ==================================================================== [SUCCESS] Took 7.18 seconds ==================================================================== Terminal will be reused by tasks, press any key to close it.

clabnet commented 3 years ago

This is not an error of this code. You must install packages with npm or yarn. This code is not simple for novices.  It need experiences of web platform and embedded platform. Google can help you.

⁣--------- Claudio Barca

Ottieni BlueMail per Android ​

Il giorno 18 dic 2020, 12:24, alle ore 12:24, Shalke04 notifications@github.com ha scritto:

Hi, Im trying to build Dashboard example and Im getting these errors although it compiles fine. But with these errors dashboard doesnt work. Any advice?

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20) at Object. (C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js:1:89) at Module._compile (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2\.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! esp@1.0.0 build: webpack --mode=production npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the esp@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_08_26_277Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_08_28_874Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes)

[SUCCESS] Took 7.51 seconds

Terminal will be reused by tasks, press any key to close it.

Executing task in folder CleanProject2: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2) LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft

esp@1.0.0 build C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework webpack --mode=production

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20) at Object. (C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js:1:89) at Module._compile (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2\.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! esp@1.0.0 build: webpack --mode=production npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the esp@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_10_13_246Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_10_15_765Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes)

[SUCCESS] Took 7.41 seconds

Terminal will be reused by tasks, press any key to close it.

Executing task in folder CleanProject2: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2) LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft

esp@1.0.0 build C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework webpack --mode=production

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20) at Object. (C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js:1:89) at Module._compile (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2\.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! esp@1.0.0 build: webpack --mode=production npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the esp@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_14_57_650Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_15_00_109Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes)

[SUCCESS] Took 7.10 seconds

Terminal will be reused by tasks, press any key to close it.

Executing task in folder CleanProject2: C:\Users\shalk.platformio\penv\Scripts\pio.exe run <

Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2) LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft

esp@1.0.0 build C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework webpack --mode=production

[webpack-cli] Error: Cannot find module 'html-webpack-plugin' Require stack:

C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js

C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20) at Object. (C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js:1:89) at Module._compile (C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\shalk\Documents\PlatformIO\Projects\CleanProject2\.pio\libdeps\esp12e\ESP8266 IoT Framework\webpack.config.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\groups\resolveConfig.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\webpack-cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\lib\bootstrap.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js', 'C:\Users\shalk\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! esp@1.0.0 build: webpack --mode=production npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the esp@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_18_22_676Z-debug.log Found 34 compatible libraries Scanning dependencies... Dependency Graph |-- 1.6.1 | |-- 1.2.3 | | |-- 1.2.2 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 6.17.2 | |-- 6.17.2 | |-- 1.0 | |-- 1.2 | | |-- 1.0 | |-- 1.1.0 | | |-- 1.0 | |-- 1.0 | |-- <LittleFS(esp8266)> 0.1.0 |-- 1.2.3 | |-- 1.2.2 | | |-- 1.0 | |-- 1.0 | |-- 1.0 | |-- 6.17.2 |-- 6.17.2 |-- <LittleFS(esp8266)> 0.1.0 Building in release mode npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\shalk\AppData\Roaming\npm-cache_logs\2020-12-18T11_18_24_985Z-debug.log Retrieving maximum program size .pio\build\esp12e\firmware.elf Checking size .pio\build\esp12e\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [===== ] 45.9% (used 37640 bytes from 81920 bytes) Flash: [====== ] 57.2% (used 597060 bytes from 1044464 bytes)

[SUCCESS] Took 7.18 seconds

Terminal will be reused by tasks, press any key to close it.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/maakbaas/esp8266-iot-framework/issues/72

maakbaas commented 3 years ago

Hi @Shalke04,

Sorry for the slow communication from my side. I am actually moving between houses, so I am much less available than normal.

I want to refer back to an earlier comment I made to you: https://github.com/maakbaas/esp8266-iot-framework/issues/65#issuecomment-744219176

If you get those NPM errors it means that the packages are not installed correctly. Can you check those steps again?

Shalke04 commented 3 years ago

Thats OK, I wish you good luck with moving. I have googled a lot to solve this issue, installed many things and unistall again. Really no idea what I have done not correctly. Already spend 2 days figuring out problem, but without success.

> Fri, 18 Dec 2020 09:32:53 -0800 - "maakbaas/esp8266-iot-framework" reply@reply.github.com, "maakbaas/esp8266-iot-framework" esp8266-iot-framework@noreply.github.com > > Hi @Shalke04, > > Sorry for the slow communication from my side. I am actually moving between houses, so I am much less available than normal. > > I want to refer back to an earlier comment I made to you: > https://github.com/maakbaas/esp8266-iot-framework/issues/65#issuecomment-744219176 > > If you get those NPM errors it means that the packages are not installed correctly. Can you check those steps again? > > -- > You are receiving this because you were mentioned. > Reply to this email directly or view it on GitHub: > https://github.com/maakbaas/esp8266-iot-framework/issues/72#issuecomment-748220865

maakbaas commented 3 years ago

Can you comment on the steps I proposed? And can you show that your node_modules are installed correctly as a consequence?

Shalke04 commented 3 years ago

Most of npm ERRORS are solved. The remaining ones are there: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

and this npm ERR! missing script: build

Otherwise no problems.

> Fri, 18 Dec 2020 11:02:33 -0800 - "maakbaas/esp8266-iot-framework" reply@reply.github.com, "maakbaas/esp8266-iot-framework" esp8266-iot-framework@noreply.github.com > > Can you comment on the steps I proposed? And can you show that your node_modules are installed correctly as a consequence? > > -- > You are receiving this because you were mentioned. > Reply to this email directly or view it on GitHub: > https://github.com/maakbaas/esp8266-iot-framework/issues/72#issuecomment-748264571

wdmtech commented 3 years ago

@Shalke04 I suspect you're not running npm run build in the same folder as package.json

maakbaas commented 3 years ago

This issue will be closed since it is not completely clear if there is a remaining issue. Please open a new one if this is the case.