让remix使用本地文件系统

让remix使用本地文件系统


转:https://blog.csdn.net/platocnet/article/details/83376792

1. 测试发现使用npm命令安装相关环境不成功,换成淘宝cnpm后顺利解决,应该是网络访问问题

淘宝cnpm安装方法:

npm install -g cnpm --registry=https://registry.npm.taobao.org

淘宝cnpm链接:

http://npm.taobao.org/

2. 使用cnpm安装remixd工具,该工具会在本地建立一个websocket服务器,然后就可以使用网页remix端与其进行连接了

先安装remixd:

cnpm install -g remixd

安装完成后需要使用remixd指定本地文件系统路径(绝对路径):

remixd -s <absolute-path-to-the-shared-folder>
如:remixd -s ./ --remix-ide http://localhost:8080

在remix网页端发起连接:

成功后就可以看到电脑本地文件了:

 附上remix的官方使用说明链接:

https://remix.readthedocs.io/en/latest/index.html

原文地址:https://www.cnblogs.com/it-tsz/p/11706633.html