Fix npm and json installation for the deb package
This commit is contained in:
parent
2422c59400
commit
cef457c6e7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user