Skip to content

Tag: node.js

Discard images from a group of similar images

I am generating images (thumbnails) from a video every 3 seconds. Now I need to discard/remove all the similar images. Is there a way I could this? I generate thumbnails using FFMPEG. I read about various image-diff solutions like given in this SO post, but I do not want to do this manually. How and what para…

npm seems not to be updated after updating

I update npm, it is successfully finished. However, if I ask npm’s version, it still gives the old version: I also tried many other ways to update npm, for all of them it seems to be updated but if I run npm -v I still get the old version. Restarting machine, cleaning cache etc. does not help. If I run

How to run command CTRL+Z in Shell?

I have a Node progress. I want to auto-start it and keep it in background via a shell script. The way I keep background progress is press crtl+Z after run npm run start, then run bg && disown. Now I’ve got a problem: How to process this crtl+Z command in Shell script? Answer Another way to run a…

Installing node-gyp offline

node-gyp has millions of threads regarding offline installation issues, however, none of the solutions worked for me. I’m trying to install node-sass-chokidar actually, which depends on node-sass and therefore depends on this package. I’m working on Ubuntu 16.04. Due to the pc being offline, I can…

Send KillAll to multiple node process and wait response

I’m creating a script that makes some pull from a git repository. but first i want to send a SIGUSR1 to multiple nodes that i have running in the machine, and once all the procesess stop i will proceed to git pull so basicly i will run because my node is doing an infinite loop, i want to intercept this