首页 > 编程语言 >node:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen);

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

时间:2023-02-17 11:26:34浏览次数:36  
标签:node kHandle hash modules crypto dev js webpack


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

> [email protected] 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 && 

标签:node,kHandle,hash,modules,crypto,dev,js,webpack
From: https://www.cnblogs.com/Arborblog/p/17129456.html

相关文章

  • String hashcode()
    Stringhashcode()代码段publicinthashCode(){inth=hash;if(h==0&&value.length>0){charval[]=value;......
  • Angular CLI - NodeJS 兼容版本
    |AngularCLI|Angular|NodeJS|TypeScript|RxJSVersion||-----------|----------......
  • Windows 环境下安装与配置 Node.js
    一、下载Node.js安装包下载地址:http://nodejs.cn/download/本教程以msi安装包为例点击Windows安装包下载二、安装Node.js1.打开安装包欢迎页:点击Next2.允许......
  • HashMap
    JDK1.8之前HashMap由数组+链表组成的,数组是HashMap的主体,链表则是主要为了解决哈希冲突而存在的(“拉链法”解决冲突)。JDK1.8以后在解决哈希冲突时有了较大的变化,当......
  • HashSet
    HashSet基于HashMap来实现的,是一个不允许有重复元素的集合;HashSet允许有null值;HashSet是无序的,即不会记录插入的顺序;HashSet不是线程安全的;HashSet实现了Set接口......
  • node中安装yarn详细步骤
    默认已经安装node:node安装可以看这个博客~ 1.安装yarn在任何命令行下输入 npminstall-gyarn  或者npminstall--location=globalyarn此时使用yarn命令会......
  • HashMap和ConcurrentHashMap原理
    参考文章:https://zhuanlan.zhihu.com/p/70220699/https://blog.csdn.net/androidstarjack/article/details/124507171https://blog.csdn.net/a745233700/article/detail......
  • node16 以上版本不能安装 node-sass
    最近多次遇到这个问题,node16+版本安装或者初始化带有node-sass和sass-loader包的项目报错。方法一:卸载旧版本的node-sass和sass-loader,安装sass和sass-loader,不再使用nod......
  • 模型预处理层介绍(2) - Hashing
    Hashing的方式本质上也是分桶,在上一篇我们提到过的bucket的方式进行分桶,而在Hashingd的方法中,所有的输入都会通过Hash映射进行转换成int,然后再进行分桶。该层将分类输入转......
  • 使用pnpm管理node版本
    安装pnpm你以前可能会使用如下命令安装pnpmnpmi-gpnpm对与pnpm用户来说,npm是多余的,但是没有npm该如何安装pnpm?在windows下可以使用如下powershell命令安装pnpmiw......