how to fix: fix: PS C:\xampp\htdocs\next-e-commerce-master> npx browserslist@latest --update-db
The --update-db command is deprecated.
Please use npx update-browserslist-db@latest instead.
Browserslist DB update will still be made.
Latest version:     1.0.30001624
Installed version:  1.0.30001624
caniuse-lite is up to date
caniuse-lite has been successfully updated

No target browser changes
PS C:\xampp\htdocs\next-e-commerce-master>
PS C:\xampp\htdocs\next-e-commerce-master> npm run dev

> next-e-commerce@0.1.0 dev
> cross-env next dev

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
info  - Loaded env from C:\xampp\htdocs\next-e-commerce-master\.env
ready - started server on http://localhost:3000
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 (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
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 (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
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 (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at Array.<anonymous> (C:\xampp\htdocs\next-e-commerce-master\node_modules\loader-runner\lib\LoaderRunner.js:205:4) {
  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.2.0