shoplazza-cli 1.0.7-beta.2 → 1.0.7-beta.3
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/lib/check.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const { consoleWarn } = require("./utils/console");
|
|
2
|
+
|
|
1
3
|
const supportVersion = ['v20.9.0', 'v20.18.0'];
|
|
2
4
|
|
|
3
5
|
// 解析当前版本号
|
|
@@ -16,8 +18,8 @@ function checkNodeVersion() {
|
|
|
16
18
|
);
|
|
17
19
|
|
|
18
20
|
if (!isSupported) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
consoleWarn(
|
|
22
|
+
`[WARNING]the version of current Node.js is ${process.version},advise select the support version:`,
|
|
21
23
|
supportVersion.join(',')
|
|
22
24
|
);
|
|
23
25
|
}
|