首页 > 其他分享 >error:0308010C:digital envelope routines::unsupported

error:0308010C:digital envelope routines::unsupported

时间:2024-09-13 09:34:59浏览次数:11  
标签:node 0308010C vue routines modules js mes error t1

参考——      https://www.jb51.net/javascript/315177xde.htm

报错信息————

10% building 2/2 modules 0 active(node:5732) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
10% building 2/5 modules 3 active D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack-dev-server\client\index.js?http://localhostError: 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 (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:471:10)
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:503:5
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:358:12
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:236:3
    at runSyncOrAsync (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at Array.<anonymous> (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
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 (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:471:10)
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:503:5
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:358:12
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at Array.<anonymous> (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\graceful-fs\graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
  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.15.1

 

 

解决方法——————

$env:NODE_OPTIONS="--openssl-legacy-provider"

我是vue,但在控制台输入它后启动项目时问题解决

10% building 2/2 modules 0 active(node:5732) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.(Use `node --trace-deprecation ...` to show where the warning was created)10% building 2/5 modules 3 active D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack-dev-server\client\index.js?http://localhostError: 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 (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\util\createHash.js:135:53)    at NormalModule._initBuildHash (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:417:16)    at handleParseError (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:471:10)    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:503:5    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:358:12    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:221:10)    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:236:3    at runSyncOrAsync (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:130:11)    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:232:2)    at Array.<anonymous> (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:205:4)    at Storage.finished (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9node: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 (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\util\createHash.js:135:53)    at NormalModule._initBuildHash (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:417:16)    at handleParseError (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:471:10)    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:503:5    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\webpack\lib\NormalModule.js:358:12    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3    at iterateNormalLoaders (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)    at Array.<anonymous> (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\loader-runner\lib\LoaderRunner.js:205:4)    at Storage.finished (D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9    at D:\tttttttttttttttt\t1\vue\mes_vue-master\node_modules\graceful-fs\graceful-fs.js:123:16    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {  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.15.1

标签:node,0308010C,vue,routines,modules,js,mes,error,t1
From: https://www.cnblogs.com/yansans/p/18411627

相关文章