1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dato_ynh.git synced 2024-09-03 18:16:33 +02:00

Remove package-lock and node_modules before running npm install (otherwise there are some bugs because of the way dependencies are handled in dato).

This commit is contained in:
Eauchat 2024-04-14 09:44:21 +00:00
parent b7c069479b
commit 3171e18866

View file

@ -52,6 +52,8 @@ ynh_script_progression --message="Building node dependencies..." --weight=20
pushd "$install_dir/sources"
ynh_use_nodejs
ynh_secure_remove --file="$install_dir/node_modules/"
ynh_secure_remove --file="$install_dir/package-lock.json"
ynh_exec_warn_less ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install --loglevel warn
popd