summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-19 16:58:18 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-19 16:58:18 +0200
commita62e1123e27fe5582e3b8c96699b18a2cc2a224c (patch)
tree3631dd42bbfd991a41ebf1b491426ddb1d1f67d1 /manage
parenteb6832eb95f064a9450f5658f3cee52d374c6a31 (diff)
downloadsearxng-a62e1123e27fe5582e3b8c96699b18a2cc2a224c.tar.gz
searxng-a62e1123e27fe5582e3b8c96699b18a2cc2a224c.zip
[fix] node.clean - ignore npm dependencies when npm is not installed
error pattern:: $ make clean CLEAN pyenv PYENV [virtualenv] drop local/py3 CLEAN docs -- build/docs dist/docs CLEAN locally installed npm dependencies ./manage: line 318: npm: command not found ERROR: node.clean exit with error (127) make: *** [Makefile:90: node.clean] Error 127 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage4
1 files changed, 4 insertions, 0 deletions
diff --git a/manage b/manage
index 7019f429b..167895158 100755
--- a/manage
+++ b/manage
@@ -313,6 +313,10 @@ node.env() {
}
node.clean() {
+ if ! required_commands npm 2>/dev/null; then
+ build_msg CLEAN "npm is not installed / ignore npm dependencies"
+ return 0
+ fi
build_msg CLEAN "locally installed npm dependencies"
( set -e
npm --prefix searx/static/themes/oscar run clean