AsgardCms / Platform

A modular multilingual CMS built with Laravel 5.
https://asgardcms.com/
MIT License
782 stars 241 forks source link

npm run dev issue #845

Open suryakaritva opened 1 year ago

suryakaritva commented 1 year ago

Summary of issue

I am trying upgrade my old asgardcms apps to latest version of laravel. I just checked installing a latest copy from master and all went well. except when I run npm run dev it give me the following error. Question: Is there anything that still needs to be done or can someone give any pointer on how to get around the below error.

npm run dev gives me the following error

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

10% building 1/3 modules 2 active .../var/www/asgardcms8/node_modules/sass-loader/dist/cjs.js??ref--5-5!/var/www/asgardcms8/resources/sass/app.scssError: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:138:10) at module.exports (/var/www/asgardcms8/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:417:16) at handleParseError (/var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:471:10) at /var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:503:5 at /var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:358:12 at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:373:3 at iterateNormalLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:214:10) at iterateNormalLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:221:10) at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:236:3 at runSyncOrAsync (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:130:11) at iterateNormalLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:232:2) at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:186:6 at runSyncOrAsync (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:130:11) at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:178:3 at loadLoader (/var/www/asgardcms8/node_modules/loader-runner/lib/loadLoader.js:47:3) at iteratePitchingLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:169:2) at iteratePitchingLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:165:10) at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:188:6 at runSyncOrAsync (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:124:12) at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:178:3 at loadLoader (/var/www/asgardcms8/node_modules/loader-runner/lib/loadLoader.js:47:3) at iteratePitchingLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:169:2) at runLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:365:2) at NormalModule.doBuild (/var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:295:3) at NormalModule.build (/var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:446:15) at Compilation.buildModule (/var/www/asgardcms8/node_modules/webpack/lib/Compilation.js:739:10) at /var/www/asgardcms8/node_modules/webpack/lib/Compilation.js:981:14 at /var/www/asgardcms8/node_modules/webpack/lib/NormalModuleFactory.js:409:6 at /var/www/asgardcms8/node_modules/webpack/lib/NormalModuleFactory.js:155:13 at AsyncSeriesWaterfallHook.eval [as callAsync] (eval at create (/var/www/asgardcms8/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1) at /var/www/asgardcms8/node_modules/webpack/lib/NormalModuleFactory.js:138:29 at /var/www/asgardcms8/node_modules/webpack/lib/NormalModuleFactory.js:346:9 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) node:internal/crypto/hash:69 this[kHandle] = new _Hash(algorithm, xofLen); ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:138:10) at module.exports (/var/www/asgardcms8/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:417:16) at handleParseError (/var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:471:10) at /var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:503:5 at /var/www/asgardcms8/node_modules/webpack/lib/NormalModule.js:358:12 at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:373:3 at iterateNormalLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:214:10) at iterateNormalLoaders (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:221:10) at /var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:236:3 at context.callback (/var/www/asgardcms8/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at /var/www/asgardcms8/node_modules/babel-loader/lib/index.js:44:71 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

Node.js v20.2.0

Steps to reproduce

System Details