Remix

將共享文件夾連接到 Remix 時出現 Remixd 錯誤

  • February 10, 2021

當我使用終端 (powershell) 在 Windows 10 上執行偵聽器時,會發生第一種錯誤。偵聽器(重新混合)啟動正常,然後當我連接到瀏覽器會話時,我得到以下資訊:

PS C:\Windows\System32>  remixd -s D:\zz210201_shared_folder --remix-ide https://remix.ethereum.org
[WARN] You may now only use IDE at https://remix.ethereum.org to connect to that instance
[WARN] Any application that runs on your computer can potentially read from and write to all files in the directory.
[WARN] Symbolic links are not forwarded to Remix IDE

Wed Feb 03 2021 18:29:11 GMT+0700 (Indochina Time) Remixd is listening on 127.0.0.1:65520
setup notifications for D:\zz210201_shared_folder
Error: Error: EPERM: operation not permitted, lstat 'D:\System Volume Information'

當我使用桌面版本時,嘗試建立連接時出現以下錯誤。

Wed Feb 03 2021 18:13:57 GMT+0700 (Indochina Time) Remixd is listening on 127.0.0.1:65520
Wed Feb 03 2021 18:14:14 GMT+0700 (Indochina Time) Connection from origin package://6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod rejected.
Wed Feb 03 2021 18:14:15 GMT+0700 (Indochina Time) Connection from origin package://6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod rejected.
Wed Feb 03 2021 18:14:29 GMT+0700 (Indochina Time) Connection from origin package://6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod rejected.
Wed Feb 03 2021 18:14:30 GMT+0700 (Indochina Time) Connection from origin package://6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod rejected.
Wed Feb 03 2021 18:18:31 GMT+0700 (Indochina Time) Connection from origin https://remix.ethereum.org rejected.
Wed Feb 03 2021 18:18:32 GMT+0700 (Indochina Time) Connection from origin https://remix.ethereum.org rejected.

不知道如何繼續讓它工作。任何線索表示讚賞。

停止使用任何代理,並且行為確實發生​​了一些變化。仍然收到 EPERM 錯誤,無法從 remix 瀏覽器頁面讀取目錄,但我可以創建文件並將其寫入 localhost。只是無法顯示本地主機中的內容。

今天為我修復 了同樣的錯誤!

Wed Feb 10 2021 20:21:10 GMT+0100 (heure normale d’Europe centrale) Remixd is listening on 127.0.0.1:65520
setup notifications for C:\Users\XXXX\Documents\dev\remix_shared_folder
Error: Error: EPERM: operation not permitted, lstat 'C:\Config.Msi'
   at RemixdClient.resolveDirectory (C:\Users\XXXX\AppData\Roaming\npm\node_modules\remixd\lib\src\services\remixdClient.js:36:19)
   at Object.<anonymous> (C:\Users\XXXX\AppData\Roaming\npm\node_modules\remixd\node_modules\@remixproject\plugin-ws\node_modules\@remixproject\plugin\lib\connector.js:67:56)

我已經更新了 remixdnode,但沒有成功…查看https://github.com/ethereum/remix-project/issues後,我發現了一些最近關閉的與該問題相關的錯誤(#845,也是 #853 和#833)。我遵循重新安裝remixd的建議,現在這項工作:)

npm uninstall -g remixd
npm install -g @remix-project/remixd --force

引用自:https://ethereum.stackexchange.com/questions/93085