kendricktan / ethoracle-barebones

Barebones Oracle example for Ethereum
https://kndrck.co/posts/ethereum_oracles_a_simple_guide/
19 stars 9 forks source link

Cannot find module 'web3-requestManager' #1

Open ilhanu opened 6 years ago

ilhanu commented 6 years ago

Was trying to experiment with oracles and when I run the oracle.js file it gives me the following error:

PS C:\dev\oracleCMC\ethoracle-barebones> node .\oracle.js
module.js:544
    throw err;
    ^

Error: Cannot find module 'web3-requestManager'
    at Function.Module._resolveFilename (module.js:542:15)
    at Function.Module._load (module.js:472:25)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\dev\oracleCMC\ethoracle-barebones\node_modules\web3\packages\web3-core\src\index.js:26:22)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (module.js:560:32)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)

Updating the components to the lastest versions doesn't solve it, what do you recommend ?

kendricktan commented 6 years ago

Seems like a web3.js issue. You might need to pin your dependencies.

Source: https://github.com/ethereum/web3.js/issues/966

  "dependencies": {
    "web3": "1.0.0-beta.31"
  }