Update mongodb dependency to 6.x
-Although the explorer still seems to work fine with older node.js versions, the mongodb 6.x docs indicate that the minimum supported version is v16.20.1 and therefore the explorer has been updated to also enforce this as the min version to help prevent future problems -A small fix was applied to the prestart script that was previously not stopping execution of the explorer when an older version of node.js was found. This was bug only affected running the explorer with `npm start`
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
const minNodeVersionMajor = '14';
|
||||
const minNodeVersionMinor = '13';
|
||||
const minNodeVersionMajor = '16';
|
||||
const minNodeVersionMinor = '20';
|
||||
const minNodeVersionRevision = '1';
|
||||
|
||||
// get the nodejs version
|
||||
@@ -29,7 +29,7 @@ if (nodeVersion != null && nodeVersion != '' && nodeVersion.length < 16) {
|
||||
// check if the installed nodejs is an older version than supported by the explorer
|
||||
if (!(nodeVersionMajor > minNodeVersionMajor || (nodeVersionMajor == minNodeVersionMajor && (nodeVersionMinor > minNodeVersionMinor || (nodeVersionMinor == minNodeVersionMinor && nodeVersionRevision >= minNodeVersionRevision))))) {
|
||||
console.log(`Please install an updated version of nodejs.\n\nInstalled: ${nodeVersion}\nRequired: ${minNodeVersionMajor}.${minNodeVersionMinor}.${minNodeVersionRevision}`);
|
||||
process.exit(0);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
function check_arguments_passed(cb) {
|
||||
|
||||
Reference in New Issue
Block a user