#Old project with old Laravel mix

6 messages · Page 1 of 1 (latest)

tired marsh
#

Hi!
I'm working on a very old project with old laravel mix version. Doing npm run dev is not working.
How to know what npm version I need for that project?

ocean fiber
#

"not working" could mean anything from "compiles the css wrong" to "explodes the nearest electrical box". What error message are you getting?

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

Omg I was using a very old npm version 🤦‍♂️
Just tried with 16.13.0 and now it's working fine! Thank you!

ocean fiber
#

Remember to add the solved tag to this