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?
npm install remixd
. It will install remixd in your localnode_modules
directory. To see where this is, usenpm root
to see where it has installed. It will not linkremixd
to your global program (which you can call via comment line). Now findremixd
in your local directory: go to your localnode_modules
directory and go to the.bin
directory, where it stores all programs. Now in this directory callremixd
and you will see it works. To finish, link this program so it runs globally and you can use it!(' bash: remixd: line 2:
var Router = require('./router')