Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI npm build error ERR_OSSL_EVP_UNSUPPORTED #279

Open
chaseadam opened this issue Jan 17, 2025 · 0 comments
Open

GUI npm build error ERR_OSSL_EVP_UNSUPPORTED #279

chaseadam opened this issue Jan 17, 2025 · 0 comments

Comments

@chaseadam
Copy link
Contributor

➜  gui git:(bb089a9) ✗  npm run build

> [email protected] build
> webpack

node:internal/crypto/hash:79
  this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (/home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
    at /home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9
    at /home/achasen/git/ESP8266_WiFi_v2.x/gui/node_modules/graceful-fs/graceful-fs.js:115:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v22.11.0

workaround use legacy provider

NODE_OPTIONS=--openssl-legacy-provider npm run build
chaseadam added a commit to chaseadam/ESP8266_WiFi_v2.x that referenced this issue Jan 17, 2025
…r per OpenEVSE#279, fix some links, clean up headers in platformio section, some re-order to build gui before compile/upload, simplify platform io install section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant