diff --git a/scripts/install b/scripts/install index 96d1e83..3bbf220 100755 --- a/scripts/install +++ b/scripts/install @@ -16,6 +16,9 @@ ynh_script_progression --message="Installing dependencies..." --weight=5 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version +# Install Yarn +ynh_npm install --global yarn + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -46,8 +49,6 @@ ynh_add_nginx_config ynh_script_progression --message="Building app..." --weight=30 pushd $install_dir -# Install Yarn - ynh_npm install --global yarn ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile --network-timeout=30000 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build