I am trying to deploy a Node.js app but getting errors that the node version is not supported by dependencies (they support node 12-14 and the server appears to be running node 15). Is there any way other than using a custom docker container deploy to specify the node version? I don’t see any way to do it in the app.yaml file or any documentation as to the environment_slug to use for different node versions.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
👋 @bherbruck
This is configurable in your
package.json
file use theengines
property. More info hereHere is an example of the engines property for the current Node LTS version:
Here is another example of the engines property that span between inclusive Node versions v12 to v14:
Hi there,
Quick update here in case anyone comes across this in the future.
DigitalOcean has now improved functionality with managing NodeJS runtime support from 6.x - 21.x.
You can check out the official documentation page for more information here:
- Bobby
FYI; Node 16 is available through apps now