Fixed dependencies.
Ylian Saint-Hilaire committed
Feb 21, 2021 at 11:14 UTC
36f139f0b06fdd576472db75af2e7e2410881c0c
2 files changed
+4
-16
meshcentral.js
+3
-3
@@ -126,7 +126,7 @@ function CreateMeshCentralServer(config, args) {
126
obj.service = null;
127
obj.servicelog = null;
128
if (obj.platform == 'win32') {
129
- var nodewindows = require('node-windows');
129
+ var nodewindows = require('node-windows@0.1.14');
130
obj.service = nodewindows.Service;
131
var eventlogger = nodewindows.EventLogger;
132
obj.servicelog = new eventlogger('MeshCentral');
@@ -651,7 +651,7 @@ function CreateMeshCentralServer(config, args) {
651
// Look for easy command line instructions and do them here.
652
obj.StartEx = function () {
653
var i;
654
- //var wincmd = require('node-windows');
654
+ //var wincmd = require('node-windows@0.1.14');
655
//wincmd.list(function (svc) { console.log(svc); }, true);
656
657
// Setup syslog support
@@ -3153,7 +3153,7 @@ function mainStart() {
3153
3154
// Install any missing modules and launch the server
3155
InstallModules(modules, function () {
3156
- 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; } }
3156
+ 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; } }
3157
meshserver = CreateMeshCentralServer(config, args);
3158
meshserver.Start();
3159
});
package.json
+1
-13
@@ -36,9 +36,6 @@
36
"sample-config-advanced.json"
37
],
38
"dependencies": {
39
- "@sendgrid/mail": "^7.4.2",
40
- "archiver": "^4.0.2",
41
- "archiver-zip-encrypted": "^1.0.8",
39
"body-parser": "^1.19.0",
40
"cbor": "~5.2.0",
41
"compression": "^1.7.4",
@@ -47,23 +44,14 @@
44
"express": "^4.17.0",
45
"express-handlebars": "^3.1.0",
46
"express-ws": "^4.0.0",
50
- "image-size": "^0.9.3",
47
"ipcheck": "^0.1.0",
48
"minimist": "^1.2.0",
53
- "mongodb": "^3.6.4",
49
"multiparty": "^4.2.1",
50
"nedb": "^1.8.0",
51
"node-forge": "^0.10.0",
57
- "node-rdpjs-2": "^0.3.5",
58
- "node-windows": "^0.1.14",
59
- "otplib": "^10.2.3",
60
- "saslprep": "^1.0.3",
61
- "twilio": "^3.56.0",
62
- "web-push": "^3.4.4",
52
"ws": "^6.2.1",
53
"xmldom": "^0.1.27",
65
- "yauzl": "^2.10.0",
66
- "yubikeyotp": "^0.2.0"
54
+ "yauzl": "^2.10.0"
55
},
56
"repository": {
57
"type": "git",