Giter Club home page Giter Club logo

trustisrisk.js's People

Contributors

christosporios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

trustisrisk.js's Issues

run.sh fails

  1. forked repo in OrfeasLitos
  2. cloned it locally
  3. installed docker and npm with pacman
  4. ran npm install. The following warnings appeared:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] No repository field.
npm WARN The package babel-polyfill is included as both a dev and production dependency.
  1. ran npm run-script typecheck. Output:

> [email protected] typecheck /home/user/Documents/TrustIsRisk.js
> flow check; test $? -eq 0 -o $? -eq 2

Found 0 errors
  1. Ran ./run.sh. Output:
    ./run.sh: line 3: babel: command not found

I tried installing it, but Babel is not in pacman.
Inside the node_modules there is a ton of babel directories.

Remove some setTimeouts in tests

Every use of setTimeout() in our tests should be replaced by using the onTX and onBlock callbacks. However this seems to make the test (even more) flaky. Not sure why.

First run of run.sh fails in installations

Copied here all error-like messages. The rest is mostly npm info/http messages (with a different color)
Docker version 17.03.0-ce, build 60ccb2265b
If you want the longer version, I can put it here as well, but I think you can find the problem with only this info.

$ sudo ./run.sh
src/index.js -> build/index.js
src/service.js -> build/service.js
Error response from daemon: No such container: bitcoin
Error response from daemon: No such container: bitcoin
Sending build context to Docker daemon 10.24 kB
Step 1/17 : FROM node:4
...
Get:14 http://deb.debian.org/debian/ jessie/main libzmq3-dev amd64 4.0.5+dfsg-2+deb8u1 [564 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4211 kB in 8s (526 kB/s)
Selecting previously unselected package libsodium13:amd64.
...
Setting up libzmq3-dev:amd64 (4.0.5+dfsg-2+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
 ---> 80a6c81d7b7a
Removing intermediate container b68bebda7cb0
Step 3/17 : RUN npm install -g bitcore
 ---> Running in 56b9e9b08b4b
npm info it worked if it ends with ok
npm info using [email protected]
...
npm info preinstall [email protected]

> [email protected] preinstall /usr/local/lib/node_modules/bitcore/node_modules/bitcore-node
> ./scripts/download

Downloading bitcoin: https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/bitcoin-0.12.1-linux64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   605    0   605    0     0     37      0 --:--:--  0:00:16 --:--:--   162
  0     0    0     0    0     0      0      0 --:--:--  0:00:35 --:--:--     0curl: (6) Could not resolve host: github-cloud.s3.amazonaws.com
npm info install [email protected] into /usr/local/lib/node_modules/bitcore/node_modules/bitcore-lib
...
npm ERR! Linux 4.10.2-1-ARCH
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "bitcore"
npm ERR! node v4.8.0
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE

npm ERR! [email protected] preinstall: `./scripts/download`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script './scripts/download'.
npm ERR! This is most likely a problem with the bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]

npm ERR! Please include the following file with any support request:
npm ERR!     /npm-debug.log
The command '/bin/sh -c npm install -g bitcore' returned a non-zero code: 1
Unable to find image 'bitcoin:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/bitcoin/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fbitcoin%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.