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:
parent
b7c069479b
commit
3171e18866
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue