[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/19: build-system: node: Use `--install-links' with `npm install'.
From: |
guix-commits |
Subject: |
01/19: build-system: node: Use `--install-links' with `npm install'. |
Date: |
Sat, 6 May 2023 07:56:23 -0400 (EDT) |
jlicht pushed a commit to branch master
in repository guix.
commit d8ce5e3297ac433eeda7a893b42ab9cb4a5abb7c
Author: Jelle Licht <jlicht@fsfe.org>
AuthorDate: Wed Mar 15 01:33:03 2023 +0100
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.
---
guix/build/node-build-system.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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))
- branch master updated (c229937c6a -> 40d6615ca2), guix-commits, 2023/05/06
- 01/19: build-system: node: Use `--install-links' with `npm install'.,
guix-commits <=
- 09/19: gnu: node-protocol-buffers-schema: Ignore development dependencies., guix-commits, 2023/05/06
- 14/19: gnu: node-serialport: Avoid gyp rebuilds., guix-commits, 2023/05/06
- 08/19: gnu: node-pbf: Ignore development dependencies., guix-commits, 2023/05/06
- 04/19: gnu: node-acorn: Fix broken transpilation., guix-commits, 2023/05/06
- 07/19: gnu: node-minimist: Ignore development dependencies., guix-commits, 2023/05/06
- 12/19: gnu: node-yazl: Ignore development dependencies., guix-commits, 2023/05/06
- 15/19: gnu: node-openzwave-shared: Fix compilation for new versions of node, guix-commits, 2023/05/06
- 05/19: gnu: node-buffer-crc32: Ignore development dependencies., guix-commits, 2023/05/06
- 13/19: gnu: node-uglify-js: Update to 3.14.2., guix-commits, 2023/05/06
- 06/19: gnu: node-crx3: Ignore development dependencies., guix-commits, 2023/05/06