Coder Social home page Coder Social logo

npm giving error about node-yolo HOT 4 CLOSED

mobimeo avatar mobimeo commented on May 26, 2024
npm giving error

from node-yolo.

Comments (4)

OrKoN avatar OrKoN commented on May 26, 2024

@AditiBhiwaniwala looks like you have outdated node & npm versions. Please use more recent versions like v6.10.2+ (you have 0.10.25) and the npm v3+ (you have 1.3). Let me know if this helps. It seems that the old version of NPM does not support scoped modules (stating with @) as this feature was introduced much later.

from node-yolo.

AditiBhiwaniwala avatar AditiBhiwaniwala commented on May 26, 2024

I would appreciate if you could include the proper version of the node and npm in your README.md. So, that in future people don't face such issues.
Moreover, could you please explain in your darknet.js you have included require('bindings')('darknet'). So, how exactly you are invoking underlying C++ library function for node.js

from node-yolo.

OrKoN avatar OrKoN commented on May 26, 2024

The invocation of C/C++ code works as described in the NodeJS documentation: https://nodejs.org/dist/latest-v6.x/docs/api/addons.html Additionally, the module uses https://github.com/nodejs/nan to abstract low-level NodeJS APIs.

from node-yolo.

OrKoN avatar OrKoN commented on May 26, 2024

I have added a note about the versions of NodeJS & NPM which the module requires as you suggested. If you have further questions about how native addons work in NodeJS in general, please ask the question on StackOverflow because more people will be able to answer.

from node-yolo.

Related Issues (20)

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.