Package Details: nodejs-vls 0.8.5-1

Git Clone URL: https://aur.archlinux.org/nodejs-vls.git (read-only, click to copy)
Package Base: nodejs-vls
Description: Vue language server (LSP)
Upstream URL: https://www.npmjs.com/package/vls
Licenses: MIT
Submitter: Procrat
Maintainer: Procrat
Last Packager: Procrat
Votes: 4
Popularity: 0.000000
First Submitted: 2020-09-28 20:56 (UTC)
Last Updated: 2023-03-05 14:20 (UTC)

Latest Comments

Procrat commented on 2023-03-05 14:17 (UTC)

Vetur will reach End of Life by the end of 2023 (just like Vue 2.7).1 At that point, I'll also disown this package.

whynothugo commented on 2021-04-10 08:58 (UTC)

This package installs a bunch of files into /usr/lib/node_modules/root/. This is problematic since many other package has the same [mis]behaviour (including vue-cli).

This can be fixed by removing --user root:

diff --git a/PKGBUILD b/PKGBUILD
index d92ee67..c335a31 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,8 @@ noextract=("$_pkgname-$pkgver.tgz")
 sha256sums=('6b1e2a888a6a32b4679a5f6773ee9c60688156c48c1d36110a57cc50f5699474')

 package() {
-  npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$_pkgname-$pkgver.tgz"
+  npm install -g --prefix "$pkgdir/usr" "$srcdir/$_pkgname-$pkgver.tgz"

   # Non-deterministic race in npm gives 777 permissions to random directories.
   # See https://github.com/npm/npm/issues/9359 for details.