将 Remix Ethereum IDE 连接到本地主机

Zuf*_*tov 10 bash blockchain ethereum remix

我想将 Remix - Ethereum IDE ( https://remix.ethereum.org ) 连接到本地主机。

我按照说明进行操作https://remix-ide.readthedocs.io/en/latest/remixd.html#update-to-the-latest-remixd

  1. npm install -g @remix-project/remixd使用 npm 安装了 remix 守护进程。
  2. 我创建了文件夹mkdir ~/shared_project.
  3. chmod u+rw shared_project我为本地用户授予了该文件夹的读/写权限。
  4. 我启动了 remix 守护进程sudo remixd -s ~/shared_project --remix-ide https://remix.ethereum.org

问题是,当我想将浏览器中的 Remix IDE 连接到本地主机时,我可以看到带有错误消息的弹出窗口Cannot connect to the remixd daemon. Please make sure you have the remixd running in the background.

我尝试重新启动守护进程:

  1. ps -ef | grep remixd
  2. sudo kill 1007
  3. sudo remixd -s ~/shared_project --remix-ide https://remix.ethereum.org

我尝试重新安装守护进程:

  1. sudo npm uninstall -g @remix-project/remixd
  2. sudo npm install -g @remix-project/remixd

我尝试重新打开 remix 浏览器 IDE

但是我仍然可以看到此错误消息。

我希望可以将浏览器中的 Remix IDE 连接到本地主机。

ps 我使用 MacOs Monterey 版本 12.2 和 Safari 浏览器。

Zuf*_*tov 2

如果您使用 Google Chrome 浏览器,则可以毫无问题地将 Remix Ethereum IDE 连接到本地主机。

如果您使用Safari浏览器,则需要清除Safari缓存。只有在那之后,您才能毫无问题地将 Remix Ethereum IDE 连接到本地主机。

Ps 可能还有其他事情可以帮助解决该问题。