diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-19 16:58:18 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-19 16:58:18 +0200 |
commit | a62e1123e27fe5582e3b8c96699b18a2cc2a224c (patch) | |
tree | 3631dd42bbfd991a41ebf1b491426ddb1d1f67d1 /manage | |
parent | eb6832eb95f064a9450f5658f3cee52d374c6a31 (diff) | |
download | searxng-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-x | manage | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |