Pixiv - KiraraShss
解决macOS报错 yld[1515]: Symbol not found
170 字
1 分钟
解决macOS报错 yld[1515]: Symbol not found
运行 pnpm install 报错:
dyld[1515]: Symbol not found: __ZNK6icu_746number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode Referenced from: <255171D4-4764-3E92-9D3A-99746F2228E9> /usr/local/Cellar/node/22.9.0/bin/node Expected in: <B23C6580-0B26-3188-B616-BDD422BABD7F> /usr/local/Cellar/icu4c@76/76.1_1/lib/libicui18n.74.dylibzsh: abort pnpm install
运行其他node系列的命令都一样。
解决方案
重装node。
先卸载node
笔者这里是用 brew 安装的,所以直接用 brew 卸载。

由于还安装了 vite ,因为依赖关系,把 vite 也同时卸载了。

这样应该是卸载成功了。
安装全新node
前往 https://nodejs.org/en/download/current/ 。

直接点击下载 macOS Installer (.pkg) ,然后打开并安装。

安装完后就能在命令行中使用 node 和 npm 了。

换源、安装pnpm
npm 换源:
npm config set registry https://registry.npmmirror.com安装 pnpm :
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=10.0.0 sh -pnpm 换源:
pnpm config set registry https://registry.npmmirror.com支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
解决macOS报错 yld[1515]: Symbol not found
https://www.0x3f.foo/posts/macos-dyld-error/ 白嫖一个edu邮箱(1月30日可用)
next.js 解决 `x-forwarded-host` header does not match `origin` header with value from a forwarded Server Actions request
相关文章 智能推荐
1
next.js 解决 `x-forwarded-host` header does not match `origin` header with value from a forwarded Server Actions request
实验室 2025-01-07
2
watchOS11初体验
展览厅 2024-09-17
3
Chrome 将我的后台登录页标记为危险:一次 Safe Browsing 误判排查记录
实验室 记录一次后台登录页面被 Chrome 标记为 Social Engineering 的排查与修复全过程,以及如何避免再次误判。
4
使用AI开发纯血鸿蒙arkTS应用的进阶指南(VSCode+Copilot)
实验室 2026-02-16
5
迁站记:自旧域至新域,自 Jekyll 至 Astro
展览厅 记一次博客由旧域迁移至新域,并由 Jekyll 更易为 Astro 之经过与所感。
随机文章 随机推荐
无穷大?