XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Yarn install error with latest XO github update

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    7 Posts 3 Posters 2.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      phaze75
      last edited by olivierlambert

      Hi,

      I just ran the XO github update (Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-72-generic x86_64)) as always, but after updating, yarn runs into following error. See below. Any advice on how to resolve this?

      root@xo:/opt/xen-orchestra# yarn
      yarn install v1.22.5
      [1/5] Validating package.json...
      [2/5] Resolving packages...
      [3/5] Fetching packages...
      info fsevents@2.3.2: The platform "linux" is incompatible with this module.
      info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
      info fsevents@1.2.13: The platform "linux" is incompatible with this module.
      info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
      **error @xen-orchestra/backups@0.11.0: The engine "node" is incompatible with this module. Expected version ">=14.6". Got "10.19.0"
      error Found incompatible module.**
      info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
      root@xo:/opt/xen-orchestra#
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by olivierlambert

        Hi @phaze75

        What do you mean you "just ran the XO github update" exactly?

        Please read our installation doc carefully, the error message is pretty explicit 🙂

        You have a missing per-requisite:
        https://xen-orchestra.com/docs/installation.html#packages-and-pre-requisites

        See:

        The engine "node" is incompatible with this module. Expected version ">=14.6". Got "10.19.0"
        
        P 2 Replies Last reply Reply Quote 0
        • P Offline
          phaze75 @olivierlambert
          last edited by

          @olivierlambert

          Hi Olivier,

          Well, I had a smoothly running XO v5.57, that I wanted to update to v5.58 as described in the documentation. I followed the steps exactly as shown below.

          3013c675-e9c6-4aa9-95e9-eac113177ed9-image.png

          I had successfully updated my XO already several times before today, following the exact same procedure. So now I am surprised that it ran into an error.

          Just for the record: before that I had installed all pending Ubuntu updates. That's it.

          1 Reply Last reply Reply Quote 0
          • P Offline
            phaze75 @olivierlambert
            last edited by

            @olivierlambert said in Yarn install error with latest XO github update:

            The engine "node" is incompatible with this module. Expected version ">=14.6". Got "10.19.0"
            

            I installed node v14.6 and now it works. Thanks for pointing it out to me.

            aqua-calcA 1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              You are welcome 🙂 Never miss the per-requisites 😉

              1 Reply Last reply Reply Quote 0
              • aqua-calcA Offline
                aqua-calc @phaze75
                last edited by aqua-calc

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • P Offline
                  phaze75
                  last edited by phaze75

                  For the installation of the correct node version for some major Linux distributions please follow the installation instructions in this readme:

                  https://github.com/nodesource/distributions/blob/master/README.md

                  The Ubuntu section worked for me.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post