mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 04:41:00 +00:00
[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>
This commit is contained in:
parent
eb6832eb95
commit
a62e1123e2
1 changed files with 4 additions and 0 deletions
4
manage
4
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
|
||||
|
|
Loading…
Reference in a new issue