簡體   English   中英

運行 Angular 應用程序:錯誤:0308010C:數字信封例程::不支持

[英]Running Angular Application: error:0308010C:digital envelope routines::unsupported

我在嘗試運行 angular 應用程序時發現了這個錯誤。 任何提示?

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:135:10)
at module.exports 



Error: Cannot find module '/home/isaac-wahba/Development/Personal/Udacity/Deployment/deployment-process-project/udagram/udagram-frontend/–openssl-legacy-provider'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v17.4.0

注意:我嘗試了以下方法:

  • 將 Webpack 版本更改為 4.39.2
  • 將其更改為 5.61.0。
  • 結果是
 An unhandled exception occurred: Cannot find module 'webpack/lib/ParserHelpers'

我通過改變來解決它:

  1. node版本為 16。
  2. webpack版本為 4。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM