Does anyone know how to select a nodejs version?

I have the following issue while building my app: 5.215 [error] Error: error:0308010C:digital envelope routines::unsupported Dec 21 17:18:03.158 #13 5.215 at new Hash (node:internal/crypto/hash:71:19) Dec 21 17:18:03.158 #13 5.215 at Object.createHash (node:crypto:130:10) Dec 21 17:18:03.158 #13 5.215 at module.exports (/app/node_modules/webpack/lib/util/createHash.js:135:53) Dec 21 17:18:03.158 #13 5.215 at NormalModule._initBuildHash (/app/node_modules/webpack/lib/NormalModule.js:417:16) Dec 21 17:18:03.158 #13 5.215 at handleParseError (/app/node_modules/webpack/lib/NormalModule.js:471:10) Dec 21 17:18:03.158 #13 5.215 at /app/node_modules/webpack/lib/NormalModule.js:503:5 Dec 21 17:18:03.158 #13 5.215 at /app/node_modules/webpack/lib/NormalModule.js:358:12 Dec 21 17:18:03.158 #13 5.215 at /app/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:373:3 Dec 21 17:18:03.158 #13 5.215 at iterateNormalLoaders (/app/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:214:10) Dec 21 17:18:03.158 #13 5.215 at Array.<anonymous> (/app/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:205:4) Dec 21 17:18:03.158 #13 5.215 at Storage.finished (/app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16) Dec 21 17:18:03.158 #13 5.215 at /app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9 Dec 21 17:18:03.158 Dec 21 17:18:03.158 #13 5.215 at /app/node_modules/graceful-fs/graceful-fs.js:123:16 Dec 21 17:18:03.159 #13 5.215 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) Its based on Nuxt 2 and google says that i should select another NodeJS version. However i dont know if that is the right solution because its using the same version as previous builds.
11 Replies
Percy
Percy2y ago
Project ID: 3c713278-422e-4ea0-9f74-74908f9c3715
Percy
Percy2y ago
You might find these helpful: - Host key verification failed error msg
⚠️ experimental feature
Attacler/Bart
Attacler/BartOP2y ago
3c713278-422e-4ea0-9f74-74908f9c3715
dwaynemac
dwaynemac2y ago
you may add NIXPACKS_NODE_VERSION variable to your service or
[variables]
NIXPACKS_NODE_VERSION="XXXX"
[variables]
NIXPACKS_NODE_VERSION="XXXX"
to your nixpacks.toml
Attacler/Bart
Attacler/BartOP2y ago
ive set it to 16.13.0 but i dont see any changes in the deployment logs and it still fails 😅
Attacler/Bart
Attacler/BartOP2y ago
nothing in the code repository was changed apart from 2 js lines that dont have anything to do with it i saw a previous issue about this but they selected another build option, which i dont see at the moment
stroos
stroos2y ago
@Attacler/Bart Did you find a solution?
Attacler/Bart
Attacler/BartOP2y ago
nope not yet, a friend of mine also reported this issue
Jack
Jack2y ago
Also having this issue 😦
Attacler/Bart
Attacler/BartOP2y ago
We did not find a solution yet, could you find one? No i did not manage to come up with a solution
Adam
Adam2y ago
Create a nixpacks.toml https://nixpacks.com/docs/configuration/file Add your chosen nodejs version package to the setup step. You can find versions here https://search.nixos.org/packages @Attacler/Bart @Stroos @jackculpan If adding it to the setup step doesn’t work, add it as a provider
Want results from more Discord servers?
Add your server