brunosimon/folio-2019

解决digital envelope routines::unsupported问题

Opened this issue · 1 comments

更改package.json文件
"scripts": { "build": "webpack --config ./bundler/webpack.prod.js", "dev": "set NODE_OPTIONS=--openssl-legacy-provider && webpack-dev-server --config ./bundler/webpack.dev.js", "watch": "webpack --watch --config ./bundler/webpack.config.js" },

更改package.json文件 "scripts": { "build": "webpack --config ./bundler/webpack.prod.js", "dev": "set NODE_OPTIONS=--openssl-legacy-provider && webpack-dev-server --config ./bundler/webpack.dev.js", "watch": "webpack --watch --config ./bundler/webpack.config.js" },

However, it still didn't work on my computer. I will appreciate it If someone could give me some advice.
`ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from ./dist
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^

Error: error:0308010C:digital envelope routines::unsupportedand opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}`