2023/05/02

Node.js error Bundling main process...node:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen);

遇到的錯誤如下:

 Bundling main process...node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
解決方案:

nvm install 16 && nvm use 16
是因為OpenSSL版本問題所導致