I'm trying to create a little script to resize images. But what ever i do, i get the Error: spawn ENOTDIR
See the rwx file settings here:
I have striped the code to this. And the error still occurs:
const gm = require('gm');
gm('./test-photo.jpg').write('./output.jpg', (err) => {
console.log(err);
});
My package.json looks like this:
I checked allot of examples and searched for others having the same problem. Could not find any, so i must be me forgetting something really silly.