@svallinn Might be cleaner if we can also fix the misaligned spaces from the PKGBUILD as part of your patch, I pasted the relevant lines here after fixing them.
- # Install the correct version of NodeJS (read from .nvmrc)
- nvm install $(cat .nvmrc)
- # Install the correct version of NodeJS (read from .nvmrc)
+ nvm install "$(cat .nvmrc)"
nvm use
# Check if the correct version of node is being used
if [[ "$(node --version)" != "$(cat .nvmrc)" ]]
then
- echo "Using the wrong version of NodeJS! Expected ["$(cat .nvmrc)"] but using ["$(node --version)"]."
- exit 1
+ echo "Using the wrong version of NodeJS! Expected [$(cat .nvmrc)] but using [$(node --version)]."
+ exit 1
fi
Pinned Comments
cedricroijakkers commented on 2022-09-05 10:41 (UTC)
NOTE: If you are building in a chroot, make sure package
systemd-sysvcompat
is installed on your system, as this is required fornvm
. This cannot be included in the dependencies, since it will break on non-systemd distributions.