Package Details: nodejs-vls 0.7.2-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://github.com/vuejs/vetur/tree/master/server
Licenses: MIT
Submitter: Procrat
Maintainer: Procrat
Last Packager: Procrat
Votes: 3
Popularity: 1.12
First Submitted: 2020-09-28 20:56
Last Updated: 2021-03-25 06:58

Latest Comments

whynothugo commented on 2021-04-10 08:58

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.