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


D:\Node\node.exe D:\Node\node_modules\npm\bin\npm-cli.js run start:dev --scripts-prepend-node-path=auto

> ant-design-pro@5.2.0 start:dev
> cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev

Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Bundle with webpack 5...
⏱️  MFSU Enabled
Starting the development server...

* Webpack █████████████████████████ building (10%) 0/1 entries 0/0 dependencies 0/0 modules 0 active


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

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (D:\webProject\antpro\myapp\node_modules\@umijs\deps\compiled\webpack\5\bundle5.js:184154:18)
    at BulkUpdateDecorator.update (D:\webProject\antpro\myapp\node_modules\@umijs\deps\compiled\webpack\5\bundle5.js:184055:50)
    at D:\webProject\antpro\myapp\node_modules\@umijs\deps\compiled\webpack\5\bundle5.js:107101:9
    at D:\webProject\antpro\myapp\node_modules\@umijs\deps\compiled\webpack\5\bundle5.js:33829:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.12.1

Process finished with exit code 0

node 16.19.0以上加上
set NODE_OPTIONS=--openssl-legacy-provider && 

posted @ 2023-02-17 11:12  Arborblog  阅读(1635)  评论(0编辑  收藏  举报