I would like to connect Remix - Ethereum IDE (https://remix.ethereum.org) to localhost.
I followed the instructions https://remix-ide.readthedocs.io/en/latest/remixd.html#update-to-the-latest-remixd:
npm install -g @remix-project/remixd
using npm.mkdir ~/shared_project
.chmod u+rw shared_project
for my local user.sudo remixd -s ~/shared_project --remix-ide https://remix.ethereum.org
.The problem is that when I would like to connect Remix IDE in a browser to localhost I can see the popup window with the error message Cannot connect to the remixd daemon. Please make sure you have the remixd running in the background.
.
I tried to reboot daemon:
ps -ef | grep remixd
sudo kill 1007
sudo remixd -s ~/shared_project --remix-ide https://remix.ethereum.org
.I tried to reinstall the daemon:
sudo npm uninstall -g @remix-project/remixd
sudo npm install -g @remix-project/remixd
I tried to reopen the remix browser IDE
However I can see this error message still.
I expect that I can connect Remix IDE in a browser to localhost.
p.s. I use MacOs Monterey Version 12.2 and Safari browser.
If you use Google Chrome browser, you can connect the Remix Ethereum IDE to localhost with no issues.
If you use Safari browser, you need to clear Safari cache. Only after that you would be able to connect the Remix Ethereum IDE to localhost with no issues.
P.s. May be there are other things else which can help to resolve the issue.