Social Icons

Showing posts with label Ganache-cli. Show all posts
Showing posts with label Ganache-cli. Show all posts

Monday, February 03, 2020

Installating Ganache-CLI : Ubuntu 18.04 LTS

Few screen shots below for reference and terminal commands produced for installing GANACHE-CLI.First we need to install npm ....

    1  sudo apt-get update
    2  sudo apt install npm
    3  sudo npm install -g ganache-cli
    4  ganache-cli -a




 The accounts created with details of public private keys

Sunday, December 08, 2019

ganache-cli : installation error Unexpected token { [SOLVED]

If you are here to resolve the following error while installing ganache-cli

/usr/local/lib/node_modules/ganache-cli/cli.js:8
var {toChecksumAddress, BN} = require("ethereumjs-util");
    ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3


The following commands will resolve this as follows :

sudo apt-get install curl python-software-properties
sudo apt-get update
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs


Powered By Blogger