问题描述
运行以下命令时,出现以下错误-有什么我可以解决的方法吗?曾在Mac OS和Linux上尝试过相同的问题
remixed -s / home / garrett / --remix-ide http://remix.ethereum.org/
[WARN]您现在只能在http://remix.ethereum.org/上使用IDE来连接到该实例
[WARN]计算机上运行的任何应用程序都可能会读取和写入目录中的所有文件。
[WARN]符号链接不会转发到Remix IDE
/usr/local/lib/node_modules/remixd/lib/bin/remixd.js:35 throw new Error(error);
Error: TypeError: Class constructor PluginClient cannot be invoked without 'new'
at Object.<anonymous> (/usr/local/lib/node_modules/remixd/lib/bin/remixd.js:35:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
解决方法
在macOS Catalina上运行正常
- npm缓存清理-f;
- sudo npm i [email protected] -g --unsafe-perm;
- 重新混合-s / home / garrett / --remix-ide http://remix.ethereum.org/;