From d80acb2613b897aa348c5a77151c8ceac79d8b95 Mon Sep 17 00:00:00 2001 From: Abraham Arango Date: Sun, 18 Mar 2018 14:57:03 -0400 Subject: [PATCH] Remove process.exit(1); for npm install. This line is causing many people to stop from being able to deploy. (see this issue https://github.com/imagemin/pngquant-bin/issues/78) Can this be changed to determine whether libpng-dev can be installed on the system and stop the process if it can be installed with a warning to the user to install libpng-dev, else just continue on installing npm packages? It seems that systems with a commad of apt-get have access to libpgn-dev. This line is literally stopping the deployment of apps on systems where libpng-dev cannot be installed. I am on CentOS and there is no libpng-dev package for that system. Thank you! --- lib/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install.js b/lib/install.js index e328f6c..02f24a8 100644 --- a/lib/install.js +++ b/lib/install.js @@ -24,7 +24,7 @@ bin.run(['--version'], err => { logalot.error(err.stack); // eslint-disable-next-line unicorn/no-process-exit - process.exit(1); + //process.exit(1); }); }