From 166b0f84811a3d054d395fbd932c01950bf71857 Mon Sep 17 00:00:00 2001 From: threa4ctor Date: Thu, 23 Dec 2021 17:57:53 +0100 Subject: [PATCH] make sure npm is available in the env when building There was the proper environment missing in the build() routine when npm wasn't installed globally. This led the build fail because `npm` could not be found. Calling getnvm to source the NVM env fixes it. --- PKGBUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 5943f3d..5bd0651 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -60,6 +60,8 @@ prepare() { } build() { + getnvm + cd "${srcdir}/${pkgname%-git}" # We are not using the systems Electron as we need castlab's Electron.