me
/
guix
Archived
1
0
Fork 0

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.
master
Jelle Licht 2023-03-15 01:33:03 +01:00
parent c229937c6a
commit d8ce5e3297
No known key found for this signature in database
GPG Key ID: DA4597F947B41025
1 changed files with 2 additions and 1 deletions

View File

@ -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))