小编Ahm*_*adi的帖子

错误:错误:0308010C:数字信封例程::不支持 - Next.js

这个问题出现在 Node 版本 17 的 Next.js 项目中我尝试了很多解决方案,但这个解决方案是最好的,如果它发生在你身上,你可以解决这个问题


> landing-page@0.0.1 dev
> next dev

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
ready - started server on http://localhost:3000
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 module.exports (E:\Collage\COURSES\react.js projects2\01.Build and Deploy a Premium Next JS React Website _ Landing Page, Business Website, Portfolio\nextjs_landing_page\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (E:\Collage\COURSES\react.js projects2\01.Build and Deploy a Premium Next JS React Website _ Landing 
Page, Business …
Run Code Online (Sandbox Code Playgroud)

node.js node-modules reactjs next.js

16
推荐指数
1
解决办法
3万
查看次数

标签 统计

next.js ×1

node-modules ×1

node.js ×1

reactjs ×1