Yarn error during install - no such option

What app is this about, and its version: LXD-UI 0.22~ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: Other(?)

Describe your issue

Hi,
Tried installing LXD-UI and it errors during yarn command.
Looks like it needs to check if yarn is available otherwise install it as I tested typing yarn into CLI and it has the same error.
Happy to test when needed.
Ben

EDIT: Should also note, I am using x86_64 dedicated server with OVH.

Share relevant logs or error messages

https://paste.yunohost.org/raw/wecadeluvo

The fact that yarn also fails directly on your OVH server points to a missing app dependency, not the x86_64 setup. This looks like an LXD-UI packaging issue.

Absolutely

Just included so people know I am using x86_64 architecture and not Raspberry Pi, etc

What do return

yarn --version
which yarn
yarn --help
yarn --version
-bash: yarn: command not found

I understand that yarn isn’t installed on my system, just wanted to bring it to the author’s attention. The script may need a way of detecting yarn and if not installed then installing before continuing.

Thank you to @Reese.Palmer69 and @otm33

Can you share the lxd-ui install log ?

The log I got is in the first post.

That was taken directly when install failed.

Sorry for that.

Can you also share the output of cat /etc/apt/sources.list.d/ ?

I may be wrong but I guess the yarn.list is not present in your sources.

If so

yunohost tools regen-conf apt --force
# check if yarn.list is now present in /etc/apt/sources.list.d/

Then try reinstalling lxd-ui.

Success! Configuration updated for 'apt'
apt:
  applied:
    /etc/apt/sources.list.d/yarn.list:
      status: force-created
  pending:

Excellent. That seemed to do it :slight_smile:

I was able to install successfully.

Thanks @otm33