You are not logged in.

#1 2022-08-15 17:53:57

ArchHippo
Member
Registered: 2021-06-10
Posts: 11

[SOLVED] makepkg for vscode fails

Using https://aur.archlinux.org/packages/code-git

and running makepkg fails

==> Starting build()...
yarn install v1.22.19
$ node build/npm/preinstall.js
*** Please use node.js versions >=16.14.x and <17.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...

Thanks for any suggestions

Last edited by ArchHippo (2022-08-17 20:18:01)

Offline

#2 2022-08-15 18:09:28

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] makepkg for vscode fails

The AUR allows comments and one of them has the solution:
https://aur.archlinux.org/packages/code … ent-874181
You might also want to update the electron version, but I don't know which one would be the best for a current vscode. Maybe compare with the stable release https://archlinux.org/packages/community/x86_64/code/

If you build it yourself maybe consider vscodium as well?

Last edited by progandy (2022-08-15 18:13:18)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2022-08-16 07:40:47

ArchHippo
Member
Registered: 2021-06-10
Posts: 11

Re: [SOLVED] makepkg for vscode fails

Thanks for replying.  If by the solution you mean

"switch make dep to nodejs-lts-gallium."

I had seen this, but I don't understand what it means.

I did try installing nodejs-lts-gallium, which forces me to uninstall nodejs-lts-fermium.  Unfortunately when I do this, the makepkg fails with:

makepkg
==> Making package: code-git 1.71.0.r99669.g5864b1f51a8-1 (Tue 16 Aug 2022 08:40:01 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> nodejs-lts-fermium
==> ERROR: Could not resolve all dependencies.

Last edited by ArchHippo (2022-08-16 07:54:56)

Offline

#4 2022-08-16 08:16:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED] makepkg for vscode fails

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2022-08-16 12:43:46

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg for vscode fails

Edit the PKGBUILD and change all occurences of node-lts-fermium to node-lts-gallium .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2022-08-16 14:31:54

loqs
Member
Registered: 2014-03-06
Posts: 17,198

Re: [SOLVED] makepkg for vscode fails

Did you intend to pick code-git over the prebuilt code package?
diff of changes I made:

git diff
diff --git a/PKGBUILD b/PKGBUILD
index a30630f..0a7e09f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,9 +10,10 @@ pkgdesc='The Open Source build of Visual Studio Code (vscode) editor - git lates
 #   - dubnium: 10
 #   - erbium: 12
 #   - fermium: 14
+#   - gallium: 16
 # Important: Remember to check https://github.com/microsoft/vscode/blob/master/.yarnrc for target electron version
-_electron=electron13
-pkgver=1.66.0.r94376.gd5b0615eca7
+_electron=electron19
+pkgver=1.71.0.r99687.g3b47ac45eaf
 pkgrel=1
 arch=('i686' 'x86_64' 'armv7h')
 url='https://github.com/microsoft/vscode'
@@ -21,7 +22,7 @@ depends=($_electron 'libsecret' 'libx11' 'libxkbfile' 'ripgrep')
 optdepends=('bash-completion: Bash completions'
             'zsh-completions: ZSH completitons'
             'x11-ssh-askpass: SSH authentication')
-makedepends=('git' 'gulp' 'npm' 'python' 'yarn' 'nodejs-lts-fermium')
+makedepends=('git' 'gulp' 'npm' 'python' 'yarn' 'nodejs-lts-gallium')
 conflicts=('visual-studio-code-git')
 provides=('visual-studio-code-git')
 

Offline

#7 2022-08-17 20:15:19

ArchHippo
Member
Registered: 2021-06-10
Posts: 11

Re: [SOLVED] makepkg for vscode fails

Thank you both for replying.  In case it isn't obvious I don't really know what I'm doing, or at best I have huge gaps in my knowledge.

"Did you intend to pick code-git over the prebuilt code package?"

A good question.  It's been a while since I installed it, and looking again it does seem as if have the latest code-1.70.1-1 package.  I had seen some youtube videos recently where vscode seemed to have features that I don't appear to so thought I'd try the AUR.  Since I appear to have downloaded code-git at some point in the past I assumed I was using that - but it seems not.  I think I'll give up for now and stick with what I have.

Sorry if I wasted everyone's time, but both replies have added to my understanding of what's going on here, so they are very useful and much appreciated - thanks.

Offline

Board footer

Powered by FluxBB