diff --git a/scripts/install b/scripts/install index c1d060b..091dd31 100644 --- a/scripts/install +++ b/scripts/install @@ -204,8 +204,10 @@ chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs - sudo -u $app env PATH=$PATH:$nodejs_path yarn install - sudo -u $app env PATH=$PATH:$nodejs_path npm run build + sudo -u $app env PATH=$PATH yarn cache clean + sudo -u $app env PATH=$PATH yarn --frozen-lockfile --non-interactive + sudo -u $app env PATH=$PATH yarn build + sudo -u $app env PATH=$PATH yarn --production --frozen-lockfile --non-interactive popd #=================================================