David Bainbridge

Does anyone have an updated environment spec?

I have followed the presentation up to the ‘npm install’ command. Then all hell breaks loose!

TestRPC is now replaced by ganache-cli,and so from the completion of npm install I am not even sure whether I am seeing what is expected.

Is there an updated package.json file that I can use? The difference between the one in the lecture and reality is just a bit too wide for me.



  1. 7
    Jack Wu
    Jack Wu

    Hi David,

    You can replace testrpc with either ganache-cli or by using the graphical UI ganache program. Either one or both would work. Here is a list of the latest packages and their versions. Hope this helps.

    ganache-cli: 6.1.0
    web3: 1.0.0-beta.33
    solc: 0.4.21

  2. 7
    Riya Jadhav

    Hi I faced similar issues and now facing other problems (pls refer below), can someone direct me in the right direction- Thanks
    my nodejs version is 9.11.1.

    npm install
    > scrypt@6.0.3 preinstall /blockgeeks/setup/node_modules/scrypt
    > node node-scrypt-preinstall.js

    > scrypt@6.0.3 install /blockgeeks/setup/node_modules/scrypt
    > node-gyp rebuild

    gyp ERR! configure error
    gyp ERR! stack Error: Python executable “/Users/username/anaconda/bin/python” is v3.6.0, which is not supported by gyp.
    gyp ERR! stack You can pass the –python switch to point to Python >= v2.5.0 & < 3.0.0.
    gyp ERR! stack at PythonFinder.failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
    gyp ERR! stack at PythonFinder. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
    gyp ERR! stack at ChildProcess.exithandler (child_process.js:265:7)
    gyp ERR! stack at ChildProcess.emit (events.js:180:13)
    gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
    gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:353:11)
    gyp ERR! stack at Socket.emit (events.js:180:13)
    gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:541:12)
    gyp ERR! System Darwin 15.6.0
    gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
    gyp ERR! cwd /blockgeeks/setup/node_modules/scrypt
    gyp ERR! node -v v9.11.1
    gyp ERR! node-gyp -v v3.6.2
    gyp ERR! not ok
    npm WARN webpack-cli@2.0.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
    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! scrypt@6.0.3 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the scrypt@6.0.3 install 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! /Users/username/.npm/_logs/2018-04-13T12_01_39_909Z-debug.log

  3. 7
    Riya Jadhav

    Ok I managed to fix the node-gyp issues with the python version by using:

    npm config set python python2.7.

    Thanks Riya

  4. 7
    Priyanka Dash

    I have Windows 10 system. Can anyone help me do the environmental setup? I am new to node.js as well.

  5. 7
    Martino Liu

    Hi,Its is the first time for me working with Node.js and perhaps working with the Terminal, I am not a developer, however I have some notion of HTML, CSS and JavaScript. I am a designer wanting to jump into developing Blockchain technology, so any help will be appreciated, thanks.My problem is that once I got to declare the dependencies:{  “name”: “martino”,  “version”: “1.0.0”,  “description”: “”,  “main”: “index.js”,  “scripts”: {    “test”: “echo \”Error: no test specified\” && exit 1″  },  “dependencies”: {    “ethereumjs-testrpc”: “4.1.1”,    “package.json”: “^2.0.1”,    “solc”: “0.4.21”,    “web3”: “0.20.6”  },  “author”: “”,  “license”: “ISC”when I do testrpc in the command line I get this:martz:Blockchain Sandbox developer$ testrpcbash: testrpc: command not foundmartz:Blockchain Sandbox developer$ SO I replaced it with ganache-cli”dependencies”: {    “ethereumjs-testrpc”: “4.1.1”,    “ganache-cli”: “6.1.0”,    “package.json”: “^2.0.1”,    “solc”: “0.4.21”,    “web3”: “1.0.0-beta.34″martz:Blockchain Sandbox developer$ ganache-clibash: ganache-cli: command not foundmartz:Blockchain Sandbox developer$Not sure what I am doing.

  6. 7
    vamsi krishna

    installing in windows 10?