Package Details: nodejs-less 4.2.0-1

Git Clone URL: https://aur.archlinux.org/nodejs-less.git (read-only, click to copy)
Package Base: nodejs-less
Description: A standalone compiler for the LESS CSS language.
Upstream URL: http://lesscss.org/
Licenses: Apache-2.0
Conflicts: lessc
Provides: lessc
Replaces: lessc
Submitter: mtorromeo
Maintainer: cgirard
Last Packager: cgirard
Votes: 4
Popularity: 0.000019
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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,9 @@ source=("https://registry.npmjs.org/less/-/less-$pkgver.tgz")
 sha256sums=('f2067b038bec06176cbe955f26bdb29cfc9bed7aa511ac9243db50b31cbf59ce')

 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 https://github.com/npm/npm/issues/9359 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