3 Replies

also tried running after yarn build:production but it failed
root@acr2:/var/www/pterodactyl# yarn build:production
yarn run v1.22.22
$ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production
$ cd public/assets && find . ( -name ".js" -o -name ".map" ) -type f -delete
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
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 (/var/www/pterodactyl/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/var/www/pterodactyl/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/var/www/pterodactyl/node_modules/webpack/lib/NormalModule.js:471:10)
at /var/www/pterodactyl/node_modules/webpack/lib/NormalModule.js:503:5
at /var/www/pterodactyl/node_modules/webpack/lib/NormalModule.js:358:12
at /var/www/pterodactyl/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/var/www/pterodactyl/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/var/www/pterodactyl/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /var/www/pterodactyl/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/var/www/pterodactyl/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /var/www/pterodactyl/node_modules/babel-loader/lib/index.js:59:71 {
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 v20.16.0
error Command failed with exit code 1.
run
blueprint -rerun-install
if that doesn't work, https://pterodactyl.io/panel/1.0/updating.html -> https://blueprint.zip/docs/?page=getting-started/Installation