1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00

Trying to move npm

This commit is contained in:
Limezy 2022-06-09 00:57:58 +07:00
parent cd6347d1d4
commit 8446523fbf
2 changed files with 3 additions and 1 deletions

View file

@ -10,7 +10,7 @@ PHOTOPRISM_VERSION="220528-efb5d710"
NODEJS_VERSION=14 NODEJS_VERSION=14
GO_VERSION="1.18" GO_VERSION="1.18"
pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev npm" pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -147,6 +147,8 @@ pushd "$final_path"
# Setup tensorflow library # Setup tensorflow library
./scripts/dist/install-tensorflow.sh ./scripts/dist/install-tensorflow.sh
# Setup node environment # Setup node environment
ynh_use_nodejs
apt install npm
export NODE_OPTIONS=--max_old_space_size=1024 export NODE_OPTIONS=--max_old_space_size=1024
# Build server from source # Build server from source
ynh_secure_remove --file="$final_path/build" ynh_secure_remove --file="$final_path/build"