Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Error wrong Node Version #19

Open
nielsblobel opened this issue Jul 4, 2024 · 6 comments
Open

Install Error wrong Node Version #19

nielsblobel opened this issue Jul 4, 2024 · 6 comments

Comments

@nielsblobel
Copy link

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
Copy link
Owner

when you run node -v what does it show?

@tjaworski
Copy link
Owner

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
Copy link
Author

nielsblobel commented Jul 5, 2024

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
Copy link
Owner

npm is missing.

sudo apt install npm

@nielsblobel
Copy link
Author

Bildschirmfoto 2024-07-08 um 11 15 05 i have installed npm and still getting the same error

@tjaworski
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants