Giter Club home page Giter Club logo

node-jawn-docker's People

Contributors

axocomm avatar clamorisse avatar flyingzumwalt avatar

Stargazers

 avatar

Watchers

 avatar

node-jawn-docker's Issues

Fails to find leveldb bindings

The npm tests are failing because leveldb isn't installed. I think you need to install leveldown using something like apt-get install -y libleveldb-dev.

I'm working on it now. Should have a PR shortly.

Why you didn't see the error

If you only run the node tests using docker run --rm node-jawn/jawn npm test you don't see the error output. You only see:


> [email protected] test /app
> standard && tape test/*.js

That's just the info from the tests starting to run. If they were running properly, you would see a lot more info coming through.

Recreating the error

I built the image from the current dockerfile using

docker build -t node-jawn/jawn .

Then cd into the directory with my copy of the jawn code and ran

docker run --rm -it -v "$(pwd):/app/" node-jawn/jawn bash

Then when I run npm test, this is what I get:


> [email protected] test /app
> standard && tape test/*.js


/app/node_modules/bindings/bindings.js:91
  throw err
        ^
Error: Could not locate the bindings file. Tried:
 → /app/node_modules/leveldown/build/leveldown.node
 → /app/node_modules/leveldown/build/Debug/leveldown.node
 → /app/node_modules/leveldown/build/Release/leveldown.node
 → /app/node_modules/leveldown/out/Debug/leveldown.node
 → /app/node_modules/leveldown/Debug/leveldown.node
 → /app/node_modules/leveldown/out/Release/leveldown.node
 → /app/node_modules/leveldown/Release/leveldown.node
 → /app/node_modules/leveldown/build/default/leveldown.node
 → /app/node_modules/leveldown/compiled/0.10.25/linux/x64/leveldown.node
    at bindings (/app/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/app/node_modules/leveldown/leveldown.js:4:46)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/app/node_modules/level/level.js:1:106)
    at Module._compile (module.js:456:26)
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0

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.