I'm trying to upload stuff to amazon s3 with the imager module. I keep getting the error message that says,
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
I've already installed imagemagick on my computer, but it keeps saying it's unlinked, could this be the problem? I also tried linking using brew link imagemagick, but it's unable to link for some reason. I'm using OSx. Any fixes?
Thanks.
It's an abbreviation of Error NO ENTry (or Error NO ENTity), and can actually be used for more than files/directories.
The spawn function launches a command in a new process and we can use it to pass that command any arguments. For example, here's code to spawn a new process that will execute the pwd command. const { spawn } = require('child_process'); const child = spawn('pwd');
Usually, Node. js allows single-threaded, non-blocking performance but running a single thread in a CPU cannot handle increasing workload hence the child_process module can be used to spawn child processes. The child processes communicate with each other using a built-in messaging system.
Please make sure the ImageMagick exe is included as part of PATH environment variable.
Simply works on Ubuntu:
sudo apt-get install imagemagick
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With