当前位置:网站首页>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
边栏推荐
- Binary tree (Beijing University of Posts and Telecommunications machine test questions) (day85)
- LeetCode 第二十七天
- 一维数组的应用
- Restful Fast Request 2022.2.2发布,支持批量导出文档
- Will this flinkcdc monitor all tables in the database? Or the designated table? I look at the background log. It monitors all tables. If it monitors
- ZJCTF_ login
- A. Round Down the Price
- A. Parkway Walk
- NLP hotspots from ACL 2022 onsite experience
- Interview question: the difference between three instantiated objects in string class
猜你喜欢

Function pointer and callback function

Startup process and rescue mode

Characteristics and determination scheme of Worthington pectinase

Smart pointer shared_ ptr、unique_ ptr、weak_ ptr

On the first day of Shenzhen furniture exhibition, the three highlights of Jin Ke'er booth were unlocked!

Chapter 5 decision tree and random forest practice

NFT数字藏品系统开发:老牌文学杂志玩起新潮数字藏品

NFT digital collection system development: old brand literary magazines play with trendy Digital Collections

Alibaba cloud server domain name and port web page cannot access the problem record

一维数组的应用
随机推荐
0726~ resume sorting interview summary
NFT数字藏品系统开发:小蚁数智帮助品牌一键上链发行NFT
C语言力扣第43题之字符串相乘。优化竖式
Use websocket to realize a web version of chat room (fishing is more hidden)
VR全景人淘金“小心机”(上)
connman介绍
A. Parkway Walk
代码回滚,你真的理解吗?
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
关于使用hyperbeach出现/bin/sh: 1: packr2: not found的解决方案
一文读懂 | 数据中台如何支撑企业数字化经营
Ring counting (Northern Polytechnic machine test questions) (day 83)
《MySQL》认识MySQL与计算机基础知识
Prime factorization -- C (GCC) -- PTA
Kettle reads file split by line
在Golang结构体中使用tag标签
科目三: 济南章丘三号线
04.在谷歌浏览器中安装模拟浏览器ChromeDriver的详细步骤
Leetcode- > 2-point search and clock in (3)
Chapter 4 decision tree and random forest