backend-manager 2.5.15 → 2.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/manager/index.js +4 -1
package/package.json
CHANGED
package/src/manager/index.js
CHANGED
|
@@ -117,9 +117,12 @@ Manager.prototype.init = function (exporter, options) {
|
|
|
117
117
|
|
|
118
118
|
// Reject if package.json does not exist
|
|
119
119
|
if (semverUsing !== semverRequired) {
|
|
120
|
-
|
|
120
|
+
const msg = `Node.js version mismatch: using ${semverUsing} but asked for ${semverRequired}`;
|
|
121
121
|
if (options.checkNodeVersion) {
|
|
122
|
+
self.assistant.error(new Error(msg), {environment: 'production'});
|
|
122
123
|
return process.exit(1);
|
|
124
|
+
} else {
|
|
125
|
+
self.assistant.log(msg, {environment: 'production'});
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
}
|