aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2023-03-15 01:33:03 +0100
committerJelle Licht <jlicht@fsfe.org>2023-05-06 13:53:21 +0200
commitd8ce5e3297ac433eeda7a893b42ab9cb4a5abb7c (patch)
treeab290cbde44fe9526ea2ce4835a0ab2684dbf84c
parentc229937c6ab38fa3e2a3906b0f47f9abe68553a0 (diff)
downloadguix-d8ce5e3297ac433eeda7a893b42ab9cb4a5abb7c.tar
guix-d8ce5e3297ac433eeda7a893b42ab9cb4a5abb7c.tar.gz
build-system: node: Use `--install-links' with `npm install'.
Later versions of npm need to explicitly install a copy of local dependencies, instead of only a symlink. * guix/build/node-build-system.scm (configure): Add `--install-links' to npm install invocation. (install): Ditto.
-rw-r--r--guix/build/node-build-system.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm
index bee3792e93..93f7efbb2b 100644
--- a/guix/build/node-build-system.scm
+++ b/guix/build/node-build-system.scm
@@ -223,7 +223,7 @@ exist."
(define* (configure #:key outputs inputs #:allow-other-keys)
(let ((npm (string-append (assoc-ref inputs "node") "/bin/npm")))
- (invoke npm "--offline" "--ignore-scripts" "install")
+ (invoke npm "--offline" "--ignore-scripts" "--install-links" "install")
#t))
(define* (build #:key inputs #:allow-other-keys)
@@ -262,6 +262,7 @@ exist."
"--offline"
"--loglevel" "info"
"--production"
+ "--install-links"
"install" "../package.tgz")
#t))