2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Local は Apple シリコンの Mac では Rosetta 2 が必要

Posted at

WordPress のローカル開発環境を簡単構築できる Local ですが、Apple シリコンの Mac では Rosetta 2 が必要なようです。(2023年3月11日現在)

開発環境

MacBook Air M3 2024
macOS Sonoma 14.4

brew install local して、
以前のマシンで expoert した wordpress の zip ファイルをインポートところ、下記エラーが出ました。

Uh-oh! Unable to provision site.

Error: Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:413:11)
at spawn (node:child_process:783:9)
at execFile (node:child_process:359:17)
at t.<computed> (node:electron/js2c/asar_bundle:2:2265)
at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:583
at new Promise (<anonymous>)
at Object.<anonymous> (/Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:534)
at Generator.next (<anonymous>)
at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:330
at new Promise (<anonymous>)
Uh-oh! Could not update hosts file

Local ran into a problem when trying to update the hosts file.

Please ensure that the hosts file is not locked by anti-virus.

色々調べた末、行き着いた原因は Rosetta 2 がインストールされていないことでした。

Rosetta 2 のインストールコマンドは softwareupdate --install-rosetta です。

I have read and agree to the terms of the software license agreement. A list of Apple SLAs may be found here: https://www.apple.com/legal/sla/
Type A and press return to agree: a

上記ダイアログが返ってきますので、 a + return でインストールされます。

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?