https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38179

--- Comment #3 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
One option here is to provide instructions for installing what is needed, as
part of the install steps for Koha. Something like:

```shell
# Add Node.js version 18
wget -O- -q https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
      | gpg --dearmor \
      | tee /usr/share/keyrings/nodesource.gpg >/dev/null \
   && echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg]
https://deb.nodesource.com/node_18.x nodistro main" >
/etc/apt/sources.list.d/nodesource.list

# Add Yarn repo
echo "deb https://dl.yarnpkg.com/debian/ stable main" >
/etc/apt/sources.list.d/yarn.list \
   && wget -O- -q https://dl.yarnpkg.com/debian/pubkey.gpg \
      | gpg --dearmor \
      | tee /usr/share/keyrings/yarnkey.gpg >/dev/null \
   && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg]
https://dl.yarnpkg.com/debian stable main" | tee
/etc/apt/sources.list.d/yarn.list

# Pin nodejs version
echo "Package: nodejs"      >  /etc/apt/preferences.d/nodejs
echo "Pin: version 18.*"    >> /etc/apt/preferences.d/nodejs
echo "Pin-Priority: 999"    >> /etc/apt/preferences.d/nodejs

# Install Node.js and Yarn
apt-get update \
   && apt-get -y install nodejs yarn

# Install required tool
yarn global add po2json
```

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to