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.
master
threa4ctor 2021-12-23 17:57:53 +01:00 committed by GitHub
parent b6addedda8
commit 166b0f8481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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.