【发布时间】:2022-06-17 20:01:23
【问题描述】:
这是当我尝试为我的应用程序运行 ng serve --open 时发生的错误,它还显示错误,而 ng --version 检查版本显示此角度不支持节点 17,但是当我尝试运行另一个可以运行但我下载的应用程序没有运行。
/ Generating browser application bundles (phase: building)...node:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at BulkUpdateDecorator.hashFactory (D:\Training\Angular\mCart\node_modules\webpack\lib\util\createHash.js:145:18)
at BulkUpdateDecorator.update (D:\Training\Angular\mCart\node_modules\webpack\lib\util\createHash.js:46:50)
at RawSource.updateHash (D:\Training\Angular\mCart\node_modules\webpack\node_modules\webpack-sources\lib\RawSource.js:77:8)
at NormalModule._initBuildHash (D:\Training\Angular\mCart\node_modules\webpack\lib\NormalModule.js:880:17)
at handleParseResult (D:\Training\Angular\mCart\node_modules\webpack\lib\NormalModule.js:946:10)
at D:\Training\Angular\mCart\node_modules\webpack\lib\NormalModule.js:1040:4
at processResult (D:\Training\Angular\mCart\node_modules\webpack\lib\NormalModule.js:755:11)
at D:\Training\Angular\mCart\node_modules\webpack\lib\NormalModule.js:819:5 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
【问题讨论】:
-
你可以关注这个问题 - stackoverflow.com/questions/69750769/… 。对于节点 17 github.com/webpack/webpack/issues/14532#issuecomment-947012063 还有一个 github 问题
-
@AlimurRaziRana,我刚刚尝试了卸载和安装更新 angular 和节点的所有操作,但最后发生了这种情况,对于一个项目,因为我下载了这个项目而不是新项目
标签: javascript node.js angular typescript