I tried running the example of NodeJS but it kept giving me this error
const Caman = require('caman').Caman;
Caman("user-icon.jpg", function () {
this.brightness(40);
this.render(function () {
this.save("./output.png");
});
});
and it gave me this error
_this.canvas = new Canvas(img.width, img.height);
^
TypeError: Canvas is not a constructor