Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

npm ERROR! #72

Closed
Shalke04 opened this issue Dec 18, 2020 · 7 comments
Closed

npm ERROR! #72

Shalke04 opened this issue Dec 18, 2020 · 7 comments

Comments

@Shalke04
Copy link

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.

@clabnet
Copy link

clabnet commented Dec 18, 2020 via email

@maakbaas
Copy link
Owner

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:
#65 (comment)

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

@Shalke04
Copy link
Author

Shalke04 commented Dec 18, 2020 via email

@maakbaas
Copy link
Owner

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

@Shalke04
Copy link
Author

Shalke04 commented Dec 18, 2020 via email

@wdmtech
Copy link
Contributor

wdmtech commented Jan 3, 2021

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

@maakbaas
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants