tjaworski / AceMagic-S1-LED-TFT-Linux

ACEMAGIC S1 Mini TFT/LCD and LED Control for Linux
GNU General Public License v3.0
100 stars 10 forks source link

Install Error wrong Node Version #19

Open nielsblobel opened 1 month ago

nielsblobel commented 1 month ago

Hey Im getting some errors during the install on an ubnutu System with 22.04 the Node Version is the Newest and still getting the same error

Bildschirmfoto 2024-07-04 um 19 45 46 Bildschirmfoto 2024-07-04 um 19 47 52

can someone help me out pls

tjaworski commented 1 month ago

when you run node -v what does it show?

tjaworski commented 1 month ago
current: { node: 'v12.22.9', npm: '8.5.1' }

so, it says you're using node v12.x, s1panel needs min version node v18.x, you can follow the directions from the node version manager https://github.com/nvm-sh/nvm to pick and choose the version you need.

so, after you install nvm, it would look like this:

sudo nvm install v18.13.0        <-- install node v18.13.0
sudo nvm use v18.13.0            <-- tell current shell to use node v18.13.0
sudo nvm alias default v18.13.0  <-- tell nvm to always use node v18.13.0 by default
sudo ./install
sudo service restart s1panel

hope this helps.

nielsblobel commented 1 month ago

when you run node -v what does it show?

it says V22.4.0 for node version i tried your fix for the nvm Install but still have the same error with the wrong Node Version

edit : now the error is gone i uninstalled the old version of Node Js and used 18.13.0

but now im getting an new error

Bildschirmfoto 2024-07-05 um 08 15 54

im not getting it to work because of the error

tjaworski commented 1 month ago

npm is missing.

sudo apt install npm
nielsblobel commented 1 month ago
Bildschirmfoto 2024-07-08 um 11 15 05

i have installed npm and still getting the same error

tjaworski commented 1 month ago

try running the npm manually in s1panel directory

sudo service stop s1panel
npm install
cd gui
npm install
npm run build
sudo service start s1panel