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
Project ID:
3c713278-422e-4ea0-9f74-74908f9c3715
You might find these helpful:
- Host key verification failed error msg
⚠️ experimental feature
3c713278-422e-4ea0-9f74-74908f9c3715
you may add NIXPACKS_NODE_VERSION variable to your service
or
to your nixpacks.toml
ive set it to 16.13.0 but i dont see any changes in the deployment logs and it still fails 😅
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
@Attacler/Bart Did you find a solution?
nope not yet, a friend of mine also reported this issue
Also having this issue 😦
We did not find a solution yet, could you find one?
No i did not manage to come up with a solution
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