Fix npm and json installation for the deb package

This commit is contained in:
Evgeniy Antonyuk 2023-07-04 19:05:22 +05:00
parent 2422c59400
commit cef457c6e7

View File

@ -118,7 +118,6 @@ apt-get install -o DPkg::options::="--force-confnew" -yq \
expect \
nano \
nodejs \
npm \
gcc \
make \
dotnet-sdk-7.0 \
@ -130,7 +129,11 @@ apt-get install -o DPkg::options::="--force-confnew" -yq \
nginx-extras \
ffmpeg
if [ ! -e /usr/bin/json ]; then
if ! command_exists npm; then
apt-get -y install npm
fi
if ! command_exists json; then
npm i json -g >/dev/null 2>&1
fi