bennetthardwick / darknet.js

A NodeJS wrapper of pjreddie's darknet / yolo.
65 stars 27 forks source link

Cannot find module darknet.node #40

Closed DrewRidley closed 3 years ago

DrewRidley commented 3 years ago

When executing a fresh install on ubuntu, (using WSL), I get the following exception:

`drew@DESKTOP-LEGTF2V:/mnt/c/Users/Drew/WebstormProjects/project1$ node index.js internal/modules/cjs/loader.js:883 throw err; ^

Error: Cannot find module './build/Release/darknet.node' Require stack:

It appears that the native node module that should have been compiled wasn't compiled, or it is not in the correct directory. Any advice on the matter would be much appreciated.

DrewRidley commented 3 years ago

Apparently it turns out that the issue was completely to do with me upgrading nodejs. I re-ran npm i and it worked. Sorry for the troubles.