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.
This commit is contained in:
threa4ctor
2021-12-23 17:57:53 +01:00
committed by GitHub
parent b6addedda8
commit 166b0f8481

View File

@@ -60,6 +60,8 @@ prepare() {
}
build() {
getnvm
cd "${srcdir}/${pkgname%-git}"
# We are not using the systems Electron as we need castlab's Electron.