antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
592 stars 242 forks source link

fix: 修复 arm 芯片下 pnpm 安装报错的问题 #130

Closed october-rain closed 2 years ago

october-rain commented 2 years ago

问题描述

M1mac 环境下使用 pnpm i 会报错

image

问题追溯

查看 sharp官网关于M1芯片的说明 后得知,^0.29.x 版本才支持 ARM64

解决方案

package.json 中,利用 pnpm.overrides 字段,将 sharp 版本锁定在 0.29.x 以上

changeset-bot[bot] commented 2 years ago

⚠️ No Changeset found

Latest commit: 22fba3ec65732fb9d0085dd2f40713c9b9441dfe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 6 packages | Name | Type | | --------------------- | ----- | | @antv/xflow-core | Patch | | @antv/xflow | Patch | | @antv/xflow-extension | Patch | | @antv/xflow-hook | Patch | | xflow-quick-start-cra | Patch | | xflow-quick-start-umi | Patch |

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

xflow-bot[bot] commented 2 years ago

👋 @october-rain

💖 Thanks for opening this pull request! 💖

Please follow the contributing guidelines. And we use semantic commit messages to streamline the release process.

Examples of commit messages with semantic prefixes:

Things that will help get your PR across the finish line:

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.