mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: madrun: node v20
This commit is contained in:
parent
4717e035ee
commit
7aacf203a0
1 changed files with 2 additions and 1 deletions
|
|
@ -8,13 +8,14 @@ const testEnv = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const is17 = /^v1[789]/.test(process.version);
|
const is17 = /^v1[789]/.test(process.version);
|
||||||
|
const is20 = /^v2/.test(process.version);
|
||||||
|
|
||||||
// fix for ERR_OSSL_EVP_UNSUPPORTED on node v17
|
// fix for ERR_OSSL_EVP_UNSUPPORTED on node v17
|
||||||
// flag '--openssl-legacy-provider' not supported
|
// flag '--openssl-legacy-provider' not supported
|
||||||
// on earlier version of node.js
|
// on earlier version of node.js
|
||||||
//
|
//
|
||||||
// https://stackoverflow.com/a/69746937/4536327
|
// https://stackoverflow.com/a/69746937/4536327
|
||||||
const buildEnv = is17 && {
|
const buildEnv = (is17 || is20) && {
|
||||||
NODE_OPTIONS: '--openssl-legacy-provider',
|
NODE_OPTIONS: '--openssl-legacy-provider',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue