当前位置:网站首页>The problem that prevented the installation of umi4 for one day has been solved
The problem that prevented the installation of umi4 for one day has been solved
2022-07-27 04:02:00 【xiyangbaixue】
umi4 It has been released for some time , It is still used in the project umi3 edition ,umi3 The worst thing is mfsu No hot updates , and umi4 New features , So I'm going to umi Version upgrade .
problem
adopt npm create umi, choice pnpm install .
Report errors :dyld: Symbol not found: _SecTrustEvaluateWithError
Environmental Science :
mac os: 10.12.6
node.js: v16.14.2
pnpm Report errors :
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /Users/keven/Library/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 1192, reused 1063, downloaded 0, added 1112, done
node_modules/.pnpm/[email protected]/node_modules/esbuild: Running postinstall script, failed in 568ms
.../[email protected]/node_modules/esbuild postinstall$ node install.js
│ node:child_process:828
│ err = new Error(msg);
│ ^
│ Error: Command failed: /Users/keven/Documents/personal/code/umi/antd/node_modules/.pnpm/[email protected]/node_m
│ dyld: Symbol not found: _SecTrustEvaluateWithError
│ Referenced from: /Users/keven/Documents/personal/code/umi/antd/node_modules/.pnpm/[email protected]/node_modul
│ Expected in: flat namespace
│ at checkExecSyncError (node:child_process:828:11)
│ at Object.execFileSync (node:child_process:866:15)
│ at validateBinaryVersion (/Users/keven/Documents/personal/code/umi/antd/node_modules/.pnpm/[email protected]
│ at /Users/keven/Documents/personal/code/umi/antd/node_modules/.pnpm/[email protected]/node_modules/esbuild/i
│ status: null,
│ signal: 'SIGABRT',
│ output: [
│ null,
│ Buffer(0) [Uint8Array] [],
│ Buffer(215) [Uint8Array] [
│ 100, 121, 108, 100, 58, 32, 83, 121, 109, 98, 111, 108,
│ 32, 110, 111, 116, 32, 102, 111, 117, 110, 100, 58, 32,
│ 95, 83, 101, 99, 84, 114, 117, 115, 116, 69, 118, 97,
│ 108, 117, 97, 116, 101, 87, 105, 116, 104, 69, 114, 114,
│ 111, 114, 10, 32, 32, 82, 101, 102, 101, 114, 101, 110,
│ 99, 101, 100, 32, 102, 114, 111, 109, 58, 32, 47, 85,
│ 115, 101, 114, 115, 47, 107, 101, 118, 101, 110, 47, 68,
│ 111, 99, 117, 109, 101, 110, 116, 115, 47, 112, 101, 114,
│ 115, 111, 110, 97,
│ ... 115 more items
│ ]
│ ],
│ pid: 15457,
│ stdout: Buffer(0) [Uint8Array] [],
│ stderr: Buffer(215) [Uint8Array] [
│ 100, 121, 108, 100, 58, 32, 83, 121, 109, 98, 111, 108,
│ 32, 110, 111, 116, 32, 102, 111, 117, 110, 100, 58, 32,
│ 95, 83, 101, 99, 84, 114, 117, 115, 116, 69, 118, 97,
│ 108, 117, 97, 116, 101, 87, 105, 116, 104, 69, 114, 114,
│ 111, 114, 10, 32, 32, 82, 101, 102, 101, 114, 101, 110,
│ 99, 101, 100, 32, 102, 114, 111, 109, 58, 32, 47, 85,
│ 115, 101, 114, 115, 47, 107, 101, 118, 101, 110, 47, 68,
│ 111, 99, 117, 109, 101, 110, 116, 115, 47, 112, 101, 114,
│ 115, 111, 110, 97,
│ ... 115 more items
│ ]
│ }
└─ Failed in 569ms
ELIFECYCLE Command failed with exit code 1.
in yarn try , The same mistake
error /Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild
Output:
node:child_process:828
err = new Error(msg);
^
Error: Command failed: node /Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild/bin/esbuild --version
dyld: Symbol not found: _SecTrustEvaluateWithError
Referenced from: /Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild-darwin-64/bin/esbuild
Expected in: flat namespace
node:child_process:869
throw err;
^
Error: Command failed: /Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild-darwin-64/bin/esbuild --version
at checkExecSyncError (node:child_process:828:11)
at Object.execFileSync (node:child_process:866:15)
at Object.<anonymous> (/Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild/bin/esbuild:172:28)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
status: null,
signal: 'SIGABRT',
output: [ null, null, null ],
pid: 15677,
stdout: null,
stderr: null
}
at checkExecSyncError (node:child_process:828:11)
at Object.execFileSync (node:child_process:866:15)
at validateBinaryVersion (/Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild/install.js:101:32)
at /Users/keven/Documents/personal/code/umi/antd/node_modules/esbuild/install.js:249:5 {
status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(1114) [Uint8Array] [
100, 121, 108, 100, 58, 32, 83, 121, 109, 98, 111, 108,
32, 110, 111, 116, 32, 102, 111, 117, 110, 100, 58, 32,
95, 83, 101, 99, 84, 114, 117, 115, 116, 69, 118, 97,
108, 117, 97, 116, 101, 87, 105, 116, 104, 69, 114, 114,
111, 114, 10, 32, 32, 82, 101, 102, 101, 114, 101, 110,
99, 101, 100, 32, 102, 114, 111, 109, 58, 32, 47, 85,
115, 101, 114, 115, 47, 107, 101, 118, 101, 110, 47, 68,
111, 99, 117, 109, 101, 110, 116, 115, 47, 112, 101, 114,
115, 111, 110, 97,
... 1014 more items
]
],
pid: 15676,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(1114) [Uint8Array] [
100, 121, 108, 100, 58, 32, 83, 121, 109, 98, 111, 108,
32, 110, 111, 116, 32, 102, 111, 117, 110, 100, 58, 32,
95, 83, 101, 99, 84, 114, 117, 115, 116, 69, 118, 97,
108, 117, 97, 116, 101, 87, 105, 116, 104, 69, 114, 114,
111, 114, 10, 32, 32, 82, 101, 102, 101, 114, 101, 110,
99, 101, 100, 32, 102, 114, 111, 109, 58, 32, 47, 85,
115, 101, 114, 115, 47, 107, 101, 118, 101, 110, 47, 68,
111, 99, 117, 109, 101, 110, 116, 115, 47, 112, 101, 114,
115, 111, 110, 97,
terms of settlement
Officials have also raised the same question , But there is no solution ,https://github.com/evanw/esbuild/issues/2183
Some articles say yes go Version problem , and go No problem , Mainly because esbuild Version of the problem .
Final solution , stay package.json Add the following configuration , Mainly through npm override To change esbuild Version information
"devDependencies": {
"esbuild-wasm":"latest"
},
"overrides": {
"esbuild":"npm:[email protected]"
}
perform npm install Just install it
边栏推荐
猜你喜欢

Implementation of API short message gateway based on golang

Is Jiufang intelligent investment a regular company? Talk about Jiufang intelligent investment

STM32CubeMX学习笔记(41)——ETH接口+LwIP协议栈使用(DHCP)

04. Detailed steps for installing the simulated browser chromedriver in Google browser

阿里云服务器域名加端口网页不能访问问题记录

关于使用hyperbeach出现/bin/sh: 1: packr2: not found的解决方案

暑假加餐|有钱人和你想的不一样(第5天)+电力系统潮流仿真(文档和Matlab代码)

想要获得 Apache 官方域名邮箱吗?专访 Apache Linkis 五位新晋 Committer告诉你怎么做

Golang发送邮件库email

VR全景制作在家装行业是谈单利器?这是为什么呢?
随机推荐
3381. 手机键盘(清华大学考研机试题)
Plato farm brings a new experience to community users through the LAAS protocol elephant swap
科目三: 济南章丘6号线
B. ICPC Balloons
[Yugong series] July 2022 go teaching course 018 switch of branch structure
C语言力扣第43题之字符串相乘。优化竖式
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
深圳家具展首日,金可儿展位三大看点全解锁!
【无标题】
一文读懂 | 数据中台如何支撑企业数字化经营
Chapter 5 decision tree and random forest practice
ApacheCon Asia 预热直播之孵化器主题全回顾
Maximum subarray cumulative sum less than or equal to K
It's confirmed that the registration of soft exam in the second half of 2022 will start in August
阿里云服务器域名加端口网页不能访问问题记录
Chapter 4 decision tree and random forest
URDF_Xcaro
Ming min investment Qiu Huiming: behind the long-term excellence and excess, the test is the team's investment and research ability and the integrity of strategy
LeetCode 第二十八天
Framework学习之旅:init 进程启动过程