Link to heading How to Upgrade
In order to have your code invoked with Node.js 10 , you need only to add an engines field to your package.json file as follows:
{
"name" : "my-app" ,
"engines" : {
"node" : "10.x"
}
}
As you can see, we have configured 10.x as the version, instead of the exact one.
This is possible because the engines property (as per the documentation ) supports semantic version ranges in its syntax.
At the moment of writing, this will result in Node.js 10.15.3 being used .
NOTE: The range 10.x will allow new deployments to take advantage of security updates and features released to Node.js 10 LTS .…