node:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); 解决方法

执行yarn dev 或者 npm run dev时出现错误:

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)

说明node版本太高,卸载node安装低版本node
推荐使用16.19.0的版本
地址: https://nodejs.org/download/release/v16.19.0/

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_44732146/article/details/129041176