diff --git a/meshcentral.js b/meshcentral.js index c6a3e8cd..8861f629 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -126,7 +126,7 @@ function CreateMeshCentralServer(config, args) { obj.service = null; obj.servicelog = null; if (obj.platform == 'win32') { - var nodewindows = require('node-windows'); + var nodewindows = require('node-windows@0.1.14'); obj.service = nodewindows.Service; var eventlogger = nodewindows.EventLogger; obj.servicelog = new eventlogger('MeshCentral'); @@ -651,7 +651,7 @@ function CreateMeshCentralServer(config, args) { // Look for easy command line instructions and do them here. obj.StartEx = function () { var i; - //var wincmd = require('node-windows'); + //var wincmd = require('node-windows@0.1.14'); //wincmd.list(function (svc) { console.log(svc); }, true); // Setup syslog support @@ -3153,7 +3153,7 @@ function mainStart() { // Install any missing modules and launch the server InstallModules(modules, function () { - if (require('os').platform() == 'win32') { try { require('node-windows'); } catch (ex) { console.log("Module node-windows can't be loaded. Restart MeshCentral."); process.exit(); return; } } + if (require('os').platform() == 'win32') { try { require('node-windows@0.1.14'); } catch (ex) { console.log("Module node-windows can't be loaded. Restart MeshCentral."); process.exit(); return; } } meshserver = CreateMeshCentralServer(config, args); meshserver.Start(); }); diff --git a/package.json b/package.json index c6cface7..1e2e355d 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,6 @@ "sample-config-advanced.json" ], "dependencies": { - "@sendgrid/mail": "^7.4.2", - "archiver": "^4.0.2", - "archiver-zip-encrypted": "^1.0.8", "body-parser": "^1.19.0", "cbor": "~5.2.0", "compression": "^1.7.4", @@ -47,23 +44,14 @@ "express": "^4.17.0", "express-handlebars": "^3.1.0", "express-ws": "^4.0.0", - "image-size": "^0.9.3", "ipcheck": "^0.1.0", "minimist": "^1.2.0", - "mongodb": "^3.6.4", "multiparty": "^4.2.1", "nedb": "^1.8.0", "node-forge": "^0.10.0", - "node-rdpjs-2": "^0.3.5", - "node-windows": "^0.1.14", - "otplib": "^10.2.3", - "saslprep": "^1.0.3", - "twilio": "^3.56.0", - "web-push": "^3.4.4", "ws": "^6.2.1", "xmldom": "^0.1.27", - "yauzl": "^2.10.0", - "yubikeyotp": "^0.2.0" + "yauzl": "^2.10.0" }, "repository": { "type": "git",