9
Jonathan Lopez 1 week ago

Dependencies not working

Have installed my dependencies
{
    “dependencies”: {
        “ethereumjs-testrpc”: “^4.1.1”,
        “solc”: “^0.4.17”,
        “testrpc”: “0.0.1”,
        “web3”: “1.0.0-beta.18”
    }
}

but when I run testrpc in the command line it doesnt run. Please help

  1. 9
    haseebrabbani
    haseebrabbani 3 weeks ago

    Hey Jonathan, the testrpc library has been renamed to ganache-cli. There are 2 versions of the Ganache library: a command-line interface called ganache-cli, as well as a GUI version available to download from their website at http://truffleframework.com/ganache

  2. 9
    Fabio Ricci 3 weeks ago
    My dependencies are:
    {
    “dependencies”: {
    “ganache-cli”: “6.1.2”,
    “solc”: “0.4.17”,
    “web3”: “1.0.0-beta.18”
    }
    }

    4 warnings are generated
    npm WARN webpack-cli@2.1.5 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN bchaintest No description
    npm WARN bchaintest No repository field.
    npm WARN bchaintest No license field.

    What is please the CURRENT way to compose a package.json (for “beginners”)?

  3. 9
    Fabio Ricci 3 weeks ago
    I got it running, after inserting a dependency “webpack”:”” and after reinstalling ganache-cli using no 6.1.2 – it installed 6-1-3
  4. 9
    Fabio Ricci 3 weeks ago
    See also https://github.com/ethereum/web3.js/issues/1439 for web3 (not installing neither)
  5. 9
    Jonathan Lopez 3 weeks ago
    Thanks guys. I’ve successfully installed it via  ‘npm install ganache-cli’ in my setup folder along with web3 and solc. Additionally I’ve also installed webpack.  How do I run these? Thanks for your help
  6. 9
    Fabio Ricci 3 weeks ago
    First start nodes, then – as the video says … ok?
  7. 9
    haseebrabbani
    haseebrabbani 3 weeks ago
    Hey Jonathan, once you have the packages installed, you can fire up a node console as shown in the video and import those packages using the require() statement
  8. 9
    Saurabh Mittal 1 week ago
    Hello,
    I am getting following error after installing latest python and git.. Help please. I am using Windows10 pro.

    C:\Projects\Ethereum\setup>npm install web3

    > web3@1.0.0-beta.18 postinstall C:\Projects\Ethereum\setup\node_modules\web3
    > lerna bootstrap

    lerna info version 2.11.0
    lerna info Bootstrapping 19 packages
    lerna info lifecycle preinstall
    lerna info Installing external dependencies
    lerna ERR! execute callback with error
    lerna ERR! Error: Command failed: npm install
    lerna ERR! npm ERR! code 128
    lerna ERR! npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q –init –recursive
    lerna ERR! npm ERR! fatal: ‘submodule’ appears to be a git command, but we were not
    lerna ERR! npm ERR! able to execute it. Maybe git-submodule is broken?
    lerna ERR! npm ERR!
    lerna ERR!
    lerna ERR! npm ERR! A complete log of this run can be found in:
    lerna ERR! npm ERR!     C:\Users\saura\AppData\Roaming\npm-cache\_logs\2018-07-02T04_53_39_707Z-debug.log
    lerna ERR!
    lerna ERR!     at Promise.all.then.arr (C:\Projects\Ethereum\setup\node_modules\execa\index.js:236:11)
    lerna ERR!     at <anonymous>
    lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
    { Error: Command failed: npm installdencies: WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediat
    npm ERR! code 128
    npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q –init –recursive
    npm ERR! fatal: ‘submodule’ appears to be a git command, but we were not
    npm ERR! able to execute it. Maybe git-submodule is broken?
    npm ERR!

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\saura\AppData\Roaming\npm-cache\_logs\2018-07-02T04_53_39_707Z-debug.log

        at Promise.all.then.arr (C:\Projects\Ethereum\setup\node_modules\execa\index.js:236:11)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:188:7)
      code: 1,
      killed: false,
      stdout: ”,
      stderr: ‘npm ERR! code 128\nnpm ERR! Command failed: C:\\Program Files\\Git\\cmd\\git.EXE submodule update -q –init –recursive\nnpm ERR! fatal: \’submodule\’ appears to be a git command, but we were not\nnpm ERR! able to execute it. Maybe git-submodule is broken?\nnpm ERR! \n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     C:\\Users\\saura\\AppData\\Roaming\\npm-cache\\_logs\\2018-07-02T04_53_39_707Z-debug.log\n’,
      failed: true,
      signal: null,
      cmd: ‘npm install’,
      timedOut: false,
      exitCode: 1 }
    npm WARN setup No description
    npm WARN setup No repository field.
    npm WARN setup No license field.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! web3@1.0.0-beta.18 postinstall: `lerna bootstrap`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the web3@1.0.0-beta.18 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\saura\AppData\Roaming\npm-cache\_logs\2018-07-02T04_53_55_107Z-debug.log

  9. 9
    Jonathan Lopez 1 week ago
    Got my dependencies working. Just had to install them globally. npm install -g ganache-cli