I have installed remixd using NPM. If I run it, it gives me the following error:
Error: Cannot find module 'web3-requestManager'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/remixd/node_modules/web3/packages/web3-core/src/index.js:26:22)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
I have searched a lot of solutions for this, like installing ethereum/web3.js
or using another version of the web3 package, but none works. How to fix?
Best Answer
As request, here is an answer on how I fixed it.
Install remixd locally via
npm install remixd
. Find your localnode_modules
directory vianpm root
and move here. Now go to.bin
directory inside this localnode_modules
directory.remixd
will be here. Now callremixd
in this directory and it will run. It doesn't appear to run globally, so you can fix this by linking this local program globally.