Package Details: nodejs-vls 0.8.2-1

Git Clone URL: (read-only, click to copy)
Package Base: nodejs-vls
Description: Vue language server (LSP)
Upstream URL:
Licenses: MIT
Submitter: Procrat
Maintainer: Procrat
Last Packager: Procrat
Votes: 4
Popularity: 0.000027
First Submitted: 2020-09-28 20:56 (UTC)
Last Updated: 2022-11-25 12:58 (UTC)

Latest Comments

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
@@ -15,7 +15,8 @@ noextract=("$_pkgname-$pkgver.tgz")

 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 for details.