From 42101e8f330a9e5c578af683a45b3df02ecfaf1e Mon Sep 17 00:00:00 2001 From: YassineOmrani Date: Thu, 13 Jul 2023 18:12:54 +0200 Subject: [PATCH 1/3] [added] add Miscellaneous section to the contributions.md file --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5ea35781..3e477e78 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,3 +39,13 @@ Please do not include the output of `scripts/build` in your commits, we only do this when we release. (Also, you probably don't need to build anyway unless you are fixing something around our global build.) +## Miscellaneous + +if you faced the below issue, make sure you use Nodejs version 16 +```node:internal/crypto/hash:71 + this[kHandle] = new _Hash(algorithm, xofLen); + ^ + +Error: error:0308010C:digital envelope routines::unsupported + at new Hash (node:internal/crypto/hash:71:19) + at Object.createHash (node:crypto:133:10)``` \ No newline at end of file From 247a4716578aa4f68c20d2a4163a3bf57ecac479 Mon Sep 17 00:00:00 2001 From: YassineOmrani Date: Thu, 13 Jul 2023 18:50:36 +0200 Subject: [PATCH 2/3] [changed] change Miscellaneous related nodejs version text --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3e477e78..630b3599 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,7 @@ anyway unless you are fixing something around our global build.) ## Miscellaneous -if you faced the below issue, make sure you use Nodejs version 16 +if you faced the below issue, make sure you use node version < 18 ```node:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); ^ From f60415e094318797133a09bb7f046fc51f8049be Mon Sep 17 00:00:00 2001 From: YassineOmrani Date: Thu, 13 Jul 2023 18:58:18 +0200 Subject: [PATCH 3/3] [added] add nodejs version restriction to package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 37006576..4d6cba86 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,6 @@ "dialog" ], "engines": { - "node": ">=8" + "node": ">=8 <18" } -} +} \ No newline at end of file