LoginSignup
0
0

More than 1 year has passed since last update.

【備忘】"mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))"が出たときの対応

Posted at

npm startすると以下のようなエラーが出ました。
エラーメッセージは消えてしまったので記憶のみで書いていきます。

dlopen
iconv.node' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))

みたいなことが出ました。

当方M1 Macを使用しているので、

have (x86_64), need (arm64e)

ここが謎だったのですが、

npm install iconv

であっさり解決しました。チップ関係なく、iconvがなかった?か、古かったみたいです。

参考:
https://github.com/bnoordhuis/node-iconv/issues/34

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0