Upgrade node version

How can I update my node version I have this error in my build logs
#10 1.178 npm ERR! code EBADENGINE
#10 1.180 npm ERR! engine Unsupported engine
#10 1.181 npm ERR! engine Not compatible with your version of node/npm: @inlang/[email protected]
#10 1.181 npm ERR! notsup Not compatible with your version of node/npm: @inlang/[email protected]
#10 1.181 npm ERR! notsup Required: {"node":">=18"}
#10 1.182 npm ERR! notsup Actual: {"npm":"8.19.2","node":"v16.18.1"}
#10 1.178 npm ERR! code EBADENGINE
#10 1.180 npm ERR! engine Unsupported engine
#10 1.181 npm ERR! engine Not compatible with your version of node/npm: @inlang/[email protected]
#10 1.181 npm ERR! notsup Not compatible with your version of node/npm: @inlang/[email protected]
#10 1.181 npm ERR! notsup Required: {"node":">=18"}
#10 1.182 npm ERR! notsup Actual: {"npm":"8.19.2","node":"v16.18.1"}
Solution:
Node | Nixpacks
App source + Nix packages + Docker = Image
Jump to solution
7 Replies
Percy
Percy17mo ago
Project ID: d7afdbc4-93fd-4b7a-bcd8-87fffb54273f
dalton57918
dalton57918OP17mo ago
d7afdbc4-93fd-4b7a-bcd8-87fffb54273f
fad
fad17mo ago
Have you tried setting the NIXPACKS_NODE_VERSION environment variable to 18?
Solution
fad
fad17mo ago
Node | Nixpacks
App source + Nix packages + Docker = Image
dalton57918
dalton57918OP17mo ago
no I can try I add this in the shared variables? where do I setup the env variable?
fad
fad17mo ago
from the service settings click on the variables tab
fad
fad17mo ago
Want results from more Discord servers?
Add your server