Package Details: nodejs-less 4.2.0-1

Git Clone URL: (read-only, click to copy)
Package Base: nodejs-less
Description: A standalone compiler for the LESS CSS language.
Upstream URL:
Licenses: Apache-2.0
Conflicts: lessc
Provides: lessc
Replaces: lessc
Submitter: mtorromeo
Maintainer: cgirard
Last Packager: cgirard
Votes: 4
Popularity: 0.002866
First Submitted: 2020-12-16 10:46 (UTC)
Last Updated: 2024-02-21 09:24 (UTC)

Latest Comments

clarfonthey commented on 2021-12-12 00:41 (UTC)

Running this as the user nobody fails since it tries to put the cache folder in /root, which fails.

Personally I use this patch which fixes that problem:

diff --git a/PKGBUILD b/PKGBUILD
index 5613dad..4826874 100644
@@ -17,7 +17,9 @@ source=("$pkgver.tgz")

 package() {
-    npm install -g --prefix "$pkgdir"/usr "$srcdir"/less-$pkgver.tgz
+    mkdir -p "$srcdir"/cache
+    npm install -g --prefix "$pkgdir"/usr --cache "$srcdir"/cache "$srcdir"/less-$pkgver.tgz

     # Non-deterministic race in npm gives 777 permissions to random directories.
     # See for details.

Not sure if you'd like to handle it this way, but it seems simple enough it might be worth adding.

christoph.gysin commented on 2021-03-23 20:49 (UTC)

Please remove --user root to avoid installing the root npm module