diff --git a/scripts/upgrade b/scripts/upgrade index ae846d2..ad447b2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,6 +109,9 @@ chown -R "$app":"$app" $final_path pushd "$final_path" ynh_use_nodejs + # remove node_modules folder before upgrading (because dato dependencies need to be installed from scratch otherwise some dependencies are not properly upgraded) + sudo -u $app env $ynh_node_load_PATH rm -r node_modules + # reinstall dependencies from scratch sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn popd