npm amd64 conflict fix

frdel committed May 6, 2025 at 21:03 UTC cab7a00c370e7127277724ead020d9522936ca8f
1 file changed +14 -4
docker/run/fs/ins/pre_install.sh
+14 -4
@@ -3,12 +3,15 @@
3 # fix permissions for cron files
4 chmod 0644 /etc/cron.d/*
5
6 +echo "=====BEFORE UPDATE====="
7 +
8 # Update and install necessary packages
7 -apt-get update && apt-get install -y \
9 +apt clean
10 +apt-get update && apt-get upgrade -y && apt-get install -y \
11 python3 \
12 python3-venv \
13 + python3-pip \
14 nodejs \
11 - npm \
15 openssh-server \
16 sudo \
17 curl \
@@ -18,6 +21,13 @@ apt-get update && apt-get install -y \
21 supervisor \
22 cron
23
24 +# for some reason npm conflicts with node on amd64 in this version and has to be installed separately
25 +apt-get install -y \
26 + npm
27 +
28 +
29 +echo "=====AFTER UPDATE====="
30 +
31 # # Configure system alternatives so that /usr/bin/python3 points to Python 3.12
32 # sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
33 # sudo update-alternatives --set python3 /usr/bin/python3.12
@@ -27,8 +37,8 @@ apt-get update && apt-get install -y \
37 # if [ -f /usr/bin/pip3.12 ]; then
38 # sudo ln -sf /usr/bin/pip3.12 /usr/bin/pip3
39 # else
30 - python3 -m ensurepip --upgrade
31 - python3 -m pip install --upgrade pip
40 +# python3 -m ensurepip --upgrade
41 +# python3 -m pip install --upgrade pip
42 # fi
43
44 # Prepare SSH daemon