Found some troubles with installation. After following instructions up to "npm start" got errors in console and message geth -rpc -rpccorsdomain "http://localhost:8000" in browser.
To solve this issue you need to install g++ (sudo apt install g++), then run npm audit fix --force.
Found some troubles with installation. After following instructions up to "npm start" got errors in console and message geth -rpc -rpccorsdomain "http://localhost:8000" in browser.
To solve this issue you need to install g++ (
sudo apt install g++
), then runnpm audit fix --force
.Now
npm start
will start correctly.npm start
``` user@vm:~/Documents/explorer$ npm start > EthereumExplorer@0.1.0 prestart /home/user/Documents/explorer > npm install > bufferutil@1.2.1 install /home/user/Documents/explorer/node_modules/bufferutil > node-gyp rebuild make: Entering directory '/home/user/Documents/explorer/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o make: g++: Command not found bufferutil.target.mk:110: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127 make: Leaving directory '/home/user/Documents/explorer/node_modules/bufferutil/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:305:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-74-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/user/Documents/explorer/node_modules/bufferutil gyp ERR! node -v v13.5.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok > utf-8-validate@1.2.2 install /home/user/Documents/explorer/node_modules/utf-8-validate > node-gyp rebuild make: Entering directory '/home/user/Documents/explorer/node_modules/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o make: g++: Command not found validation.target.mk:110: recipe for target 'Release/obj.target/validation/src/validation.o' failed make: *** [Release/obj.target/validation/src/validation.o] Error 127 make: Leaving directory '/home/user/Documents/explorer/node_modules/utf-8-validate/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:305:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-74-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/user/Documents/explorer/node_modules/utf-8-validate gyp ERR! node -v v13.5.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm WARN lifecycle EthereumExplorer@0.1.0~postinstall: cannot run in wd EthereumExplorer@0.1.0 bower install (wd=/home/user/Documents/explorer) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules/bufferutil): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 (node_modules/utf-8-validate): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 audited 1667 packages in 16.148s 24 packages are looking for funding run `npm fund` for details found 55 vulnerabilities (16 low, 11 moderate, 28 high) run `npm audit fix` to fix them, or `npm audit` for details > EthereumExplorer@0.1.0 start /home/user/Documents/explorer > http-server ./app -a localhost -p 8000 -c-1 Starting up http-server, serving ./app on port: 8000 Hit CTRL-C to stop the server ^Chttp-server stopped. ```sudo apt install g++
``` user@vm:~/Documents/explorer$ sudo apt install g++ Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gyp libc-ares2 libhttp-parser2.7.1 libjs-async libjs-inherits libjs-node-uuid libjs-underscore libssl1.0-dev libuv1 libuv1-dev linux-headers-4.15.0-20 linux-headers-4.15.0-20-generic linux-image-4.15.0-20-generic linux-modules-4.15.0-20-generic linux-modules-extra-4.15.0-20-generic node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist python-pkg-resources Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: g++-7 libc-dev-bin libc6-dev libstdc++-7-dev Suggested packages: g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg glibc-doc libstdc++-7-doc The following NEW packages will be installed: g++ g++-7 libc-dev-bin libc6-dev libstdc++-7-dev 0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded. Need to get 11.7 MB of archives. After this operation, 60.4 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-dev-bin amd64 2.27-3ubuntu1 [71.8 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6-dev amd64 2.27-3ubuntu1 [2,587 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04.1 [1,468 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04.1 [7,574 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.3 [1,568 B] Fetched 11.7 MB in 48s (242 kB/s) Selecting previously unselected package libc-dev-bin. (Reading database ... 316188 files and directories currently installed.) Preparing to unpack .../libc-dev-bin_2.27-3ubuntu1_amd64.deb ... Unpacking libc-dev-bin (2.27-3ubuntu1) ... Selecting previously unselected package libc6-dev:amd64. Preparing to unpack .../libc6-dev_2.27-3ubuntu1_amd64.deb ... Unpacking libc6-dev:amd64 (2.27-3ubuntu1) ... Selecting previously unselected package libstdc++-7-dev:amd64. Preparing to unpack .../libstdc++-7-dev_7.4.0-1ubuntu1~18.04.1_amd64.deb ... Unpacking libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~18.04.1) ... Selecting previously unselected package g++-7. Preparing to unpack .../g++-7_7.4.0-1ubuntu1~18.04.1_amd64.deb ... Unpacking g++-7 (7.4.0-1ubuntu1~18.04.1) ... Selecting previously unselected package g++. Preparing to unpack .../g++_4%3a7.4.0-1ubuntu2.3_amd64.deb ... Unpacking g++ (4:7.4.0-1ubuntu2.3) ... Setting up libc-dev-bin (2.27-3ubuntu1) ... Setting up libc6-dev:amd64 (2.27-3ubuntu1) ... Setting up libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~18.04.1) ... Setting up g++-7 (7.4.0-1ubuntu1~18.04.1) ... Setting up g++ (4:7.4.0-1ubuntu2.3) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Processing triggers for man-db (2.8.3-2ubuntu0.1) ... ```npm start
``` user@vm:~/Documents/explorer$ npm start > EthereumExplorer@0.1.0 prestart /home/user/Documents/explorer > npm install > bufferutil@1.2.1 install /home/user/Documents/explorer/node_modules/bufferutil > node-gyp rebuild make: Entering directory '/home/user/Documents/explorer/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o ../src/bufferutil.cc:25:30: error: ‘v8::Handle’ has not been declared static void Initialize(v8::Handlenpm fund
``` npm start user@vm:~/Documents/explorer$ npm fund EthereumExplorer@0.1.0 ├─┬ qs@6.9.1, is-symbol@1.0.3, es-to-primitive@1.2.1, has-symbols@1.0.1, is-callable@1.1.5, object-inspect@1.7.0, string.prototype.trimleft@2.1.1, string.prototype.trimright@2.1.1, es-abstract@1.17.0, is-map@2.0.1, is-set@2.0.1, is-string@1.0.5, es-get-iterator@1.0.2, is-date-object@1.0.2, is-regex@1.0.5, object-is@1.0.2, regexp.prototype.flags@1.3.0, side-channel@1.0.2, is-weakmap@2.0.1, is-weakset@2.0.1, which-collection@1.0.0, is-boolean-object@1.0.1, is-number-object@1.0.4, deep-equal@2.0.1 │ └── url: https://github.com/sponsors/ljharb └─┬ glob@7.1.6 └── url: https://github.com/sponsors/isaacs ```npm audit fix
``` user@vm:~/Documents/explorer$ npm audit fix > bufferutil@1.2.1 install /home/user/Documents/explorer/node_modules/bufferutil > node-gyp rebuild make: Entering directory '/home/user/Documents/explorer/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o ../src/bufferutil.cc:25:30: error: ‘v8::Handle’ has not been declared static void Initialize(v8::Handlenpm audit fix --force
``` user@vm:~/Documents/explorer$ npm audit fix --force npm WARN using --force I sure hope you know what you are doing. + karma@4.4.1 + protractor@6.0.0 added 154 packages from 101 contributors, removed 325 packages and updated 75 packages in 68.842s 5 packages are looking for funding run `npm fund` for details fixed 38 of 48 vulnerabilities in 1681 scanned packages 10 vulnerabilities required manual review and could not be updated 2 package updates for 38 vulnerabilities involved breaking changes (installed due to `--force` option) ```npm start
``` user@vm:~/Documents/explorer$ npm start > EthereumExplorer@0.1.0 prestart /home/user/Documents/explorer > npm install > EthereumExplorer@0.1.0 postinstall /home/user/Documents/explorer > bower install audited 528 packages in 6.321s 5 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > EthereumExplorer@0.1.0 start /home/user/Documents/explorer > http-server ./app -a localhost -p 8000 -c-1 Starting up http-server, serving ./app Available on: http://localhost:8000 Hit CTRL-C to stop the server [2020-01-07T17:30:48.658Z] "GET /" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" (node:8586) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated [2020-01-07T17:30:48.836Z] "GET /styles/main.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.846Z] "GET /bower_components/web3/dist/web3.min.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.874Z] "GET /bower_components/angular-bootstrap/ui-bootstrap.min.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.885Z] "GET /bower_components/angular-route/angular-route.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.891Z] "GET /app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.895Z] "GET /scripts/controllers/mainController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.896Z] "GET /scripts/controllers/addressInfoController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.900Z] "GET /scripts/controllers/blockInfosController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:48.905Z] "GET /scripts/controllers/transactionInfosController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:30:49.754Z] "GET /views/main.html" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.421Z] "GET /" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.573Z] "GET /styles/main.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.601Z] "GET /bower_components/web3/dist/web3.min.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.610Z] "GET /bower_components/angular-bootstrap/ui-bootstrap.min.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.616Z] "GET /bower_components/angular-route/angular-route.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.621Z] "GET /app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.626Z] "GET /scripts/controllers/mainController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.631Z] "GET /scripts/controllers/addressInfoController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.639Z] "GET /scripts/controllers/blockInfosController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:44.644Z] "GET /scripts/controllers/transactionInfosController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:31:45.343Z] "GET /views/main.html" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:32:12.807Z] "GET /views/blockInfos.html" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:38:53.114Z] "GET /" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:38:59.919Z] "GET /styles/main.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:38:59.937Z] "GET /bower_components/web3/dist/web3.min.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:00.035Z] "GET /bower_components/angular-route/angular-route.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:01.572Z] "GET /bower_components/angular-bootstrap/ui-bootstrap.min.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:01.575Z] "GET /app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:01.587Z] "GET /scripts/controllers/mainController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:01.629Z] "GET /scripts/controllers/addressInfoController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:02.874Z] "GET /scripts/controllers/blockInfosController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:02.878Z] "GET /scripts/controllers/transactionInfosController.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [2020-01-07T17:39:10.510Z] "GET /views/main.html" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" ```