时间来到2022年5月12日,在windows 10下,折腾了半天,终于得到了一些经验。
本地安装remix-ide
remix-ide项目的托管地址,已经从
https://github.com/ethereum/remix-ide
迁徙到:
https://github.com/ethereum/remix-project
安装方式不再是如下方法,这是过去式了,能安装,但是跑不起来,也不要尝试去让它跑起来。
npm install remix-ide -g
而是按照项目的readme,通过docker来执行。用docker来执行,镜像可能不是最新的,因此,编写solidity的最好组合应该是Remix - Ethereum IDE + 本地 remixd
remixd本地文件共享工具
remixd项目的托管地址,已经从
https://github.com/ethereum/remixd
迁徙到:
https://github.com/ethereum/remix-project/tree/master/libs/remixd
安装方式不再是:
npm install -g remixd
而是:
npm install -g @remix-project/remixd
执行remixd时,首先进入本地solidity项目的根目录,然后执行:
remixd -s ./ --remix-ide https://remix.ethereum.org
注意,这里是https,那么浏览器中也必须输入https://remix.ethereum.org
如果这里是http,那么浏览器中也必须输入http://remix.ethereum.org
本文介绍了如何在2022年5月12日的Windows10环境下正确安装和使用Remix IDE和Remixd。Remix-IDE的托管地址已更改,不再支持旧的安装方式,现在推荐通过Docker进行安装。同时,安装Remixd也需更新命令。要运行Remixd,需进入Solidity项目的根目录,并确保浏览器URL与Remixd使用的协议一致。

813

被折叠的 条评论
为什么被折叠?



