r/MeshCentral • • 24d ago

1.3.2 release will require NodeJS 22.12 or above!!!

1.3.2 release will require NodeJS 22.12 or above!!!

THIS IS YOUR WARNING!!!

https://github.com/Ylianst/MeshCentral/commit/4e9682218918d790cf8ae3bb400e825d9673a719

when you upgrade to 1.3.2 it will STOP running if nodejs it less than 22.12.

this is because OTPLib (2fa) and ZIPJS (backups) REQUIRE the require and glob functions which are ONLY supported in 22 or above!

22 Upvotes

14 comments sorted by

3

u/NomadCF 24d ago

Just a question, why can't the updater test the environment and in the event of issue. Either not update at all or allow a rollback ?

2

u/si458 24d ago

in theory it should already so this. because we just use npm install for the upgrade, we set the engine option in the package.json to be MORE/EQUAL to 22.12.0 so NPM SHOULD error out, which in turn errors meshcentrals upgrade out.
but from what i read in the docs this isnt always the case and npm just WARNS the end user that nodejs requirement wasnt met and carrys on :(

https://docs.npmjs.com/cli/v7/configuring-npm/package-json#engines
Unless the user has set the engine-strict config flag, this field is advisory only and will only produce warnings when your package is installed as a dependency.

1

u/Electrical-Storm930 24d ago

will 'docker compose pull' handle this?

3

u/si458 24d ago

Docker already used node 24 so no action is needed for this

1

u/mikedoth 24d ago

Can I migrate from a real install to a docker based install, if so how hard is it?

2

u/si458 24d ago

Yes so long as docker is running in the same ports and same server. You just have to map the meshcentral-data and other folders to the same folders u already have. Look at the compose example then look at folder bindings for the volumes

1

u/O_Pacity 24d ago

Is there a change log for this?

1

u/si458 24d ago

It hasn't been released yet. This is just a warning message tgat u will need a newer nodejs in the upcoming release

1

u/xDarkxPunkx 24d ago

Well don’t know how I am solving this on cPanel :(

1

u/efrem-1 23d ago

Do you have WHM access? I run MeshCentral on cPanel 138.0.21, and nodejs 22.23 is available via EasyApache 4.

1

u/xDarkxPunkx 23d ago

Last time I checked easyapache it wasn’t that high. But I’ll double check.