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

Interim fix for NPM module version mismatches #5685

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

gogglespisano
Copy link
Contributor

@gogglespisano gogglespisano commented Jan 11, 2024

Align and specify NPM module versions

The Dockerfile specifies NPM modules to be installed. However, some do not specify a version, so the latest is installed. Later in meshcentral.js mainStart() specific versions are required. If they don't match the latest version, all modules will be reinstalled to get the specific versions.

Fixes #5684 Soft version conflict on NPM modules causes NPM modules to be installed on startup in Docker
Fixes #5545 Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors
Fixes #5681 InstallModules() installs all modules, not just missing modules (regression)

The Dockerfile specifies NPM modules to be installed.  However, some do not specify a version, so the latest is installed.  Later in meshcentral.js mainStart() specific versions are required.  If they don't match the latest version, all modules will be reinstalled to get the specific versions.

Ylianst#5684 Soft version conflict on NPM modules causes NPM modules to be installed on startup in Docker
Ylianst#5545 Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors
Ylianst#5681 InstallModules() installs all modules, not just missing modules (regression)
@si458
Copy link
Collaborator

si458 commented Jan 11, 2024

Thank u for this, I will look into it and check it's OK, then merge if so!
I'm waiting to hear bk from @Ylianst as to whether we need to actually install meshcentral in meshcentral to help cut down the startup install time for docker containers, for example

@Ylianst Ylianst merged commit 64bef74 into Ylianst:master Jan 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants